67 fprintf(file,
"%s", PRG_HEADER);
94 fprintf(file,
"\n==============================================================");
96 fprintf(file,
"\n==============================================================\n");
107 int rhrs, rmin, rsec, uhrs, umin, usec;
108 time_t endTime = time(NULL);
112 fprintf(out,
"\nFinishing analysis on: %s\n", ctime(& endTime) );
113 fprintf(out,
"Real time consumed: %03dh:%02dm:%02ds\n", rhrs, rmin, rsec);
114 fprintf(out,
"User time consumed: %03dh:%02dm:%02ds\n\n\n", uhrs, umin, usec);
#define _IFT_OutputExportModule_elementSets
Standard output for OOFEM.
bool testTimeStepOutput(TimeStep *tStep)
Tests if given time step output is required.
std::string giveOutputBaseFileName()
Returns base output file name to which extensions, like .out .vtu .osf should be added.
IntArray nodeSets
Set which contains nodes which should be exported.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void doOutput(TimeStep *tStep, bool forcedOutput=false)
Writes the output.
IntArray elementSets
Set which contains elements which should be exported.
double giveTargetTime()
Returns target time.
Represents export output module - a base class for all output modules.
int giveNumber()
Returns receiver's number.
FILE * giveOutputStream()
virtual double giveVariableScale(VarScaleType varId)
Returns the scale factor for given variable type.
void clear()
Clears the array (zero size).
virtual void terminate()
Terminates the receiver.
EngngModel * emodel
Problem pointer.
const time_t & giveStartTime()
double giveSolutionStepTime()
Returns the user time of the current simulation step in seconds.
#define _IFT_OutputExportModule_nodeSets
IRResultType
Type defining the return values of InputRecord reading operations.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to output domain stream, for given time step.
const std::string & giveDescription() const
void giveAnalysisTime(int &rhrs, int &rmin, int &rsec, int &uhrs, int &umin, int &usec)
Returns the real and user time for the analysis.
Abstract base class representing the "problem" under consideration.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing solution step.
REGISTER_ExportModule(ErrorCheckingExportModule)