OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Represents HOM (Homogenization) export module. More...
#include <homexportmodule.h>
Public Member Functions | |
HOMExportModule (int n, EngngModel *e) | |
Constructor. Creates empty Output Manager. More... | |
virtual | ~HOMExportModule () |
Destructor. More... | |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
virtual void | doOutput (TimeStep *tStep, bool forcedOutput=false) |
Writes the output. More... | |
virtual void | initialize () |
virtual void | terminate () |
Terminates the receiver. More... | |
virtual const char * | giveClassName () const |
Returns class name of the receiver. More... | |
virtual const char * | giveInputRecordName () const |
Public Member Functions inherited from oofem::ExportModule | |
ExportModule (int n, EngngModel *e) | |
Constructor. Creates empty Output Manager with number n. More... | |
virtual | ~ExportModule () |
Destructor. More... | |
void | doForcedOutput (TimeStep *tStep) |
Writes the output. More... | |
bool | testSubStepOutput () |
Initializes receiver. More... | |
virtual void | initializeElementSet () |
Fill regionSets with all elements if regionSets is initially empty. More... | |
Protected Attributes | |
double | scale |
Scale of all homogenized values. More... | |
FILE * | stream |
Stream for file. More... | |
IntArray | ists |
Material numbers over which averaging is performed. - replaced by 'regionsets'. More... | |
Protected Attributes inherited from oofem::ExportModule | |
int | number |
Component number. More... | |
EngngModel * | emodel |
Problem pointer. More... | |
bool | tstep_all_out_flag |
Indicates all steps selection. More... | |
int | tstep_step_out |
User timeStep Output step. Indicates every tstep_step_out-th step selected. More... | |
std::list< Range > | tsteps_out |
List of user selected step numbers. More... | |
bool | tstep_substeps_out_flag |
Flag turning output in solution step substeps/itarations. More... | |
bool | domain_all_flag |
Indicates all domains. More... | |
IntArray | domainMask |
Domain selection mask. More... | |
IntArray | regionSets |
regions represented by sets More... | |
double | timeScale |
Scaling time in output, e.g. conversion from seconds to hours. More... | |
Set | defaultElementSet |
Default region set. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from oofem::ExportModule | |
int | giveNumberOfRegions () |
Returns number of regions (aka regionSets) More... | |
Set * | giveRegionSet (int i) |
Returns element set. More... | |
std::string | giveOutputBaseFileName (TimeStep *tStep) |
Gives the appropriate name (minus specific file extension). More... | |
bool | testTimeStepOutput (TimeStep *tStep) |
Tests if given time step output is required. More... | |
bool | testDomainOutput (int n) |
Test if domain output is required. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Represents HOM (Homogenization) export module.
It averages internal variables over the whole domain and all elements in global coordinate system. Tensors are given in Voigt notation. Thus various element types (beam, plane element, brick) can be combined and will give correct averaged values.
Definition at line 58 of file homexportmodule.h.
oofem::HOMExportModule::HOMExportModule | ( | int | n, |
EngngModel * | e | ||
) |
Constructor. Creates empty Output Manager.
|
virtual |
Destructor.
Definition at line 48 of file homexportmodule.C.
|
virtual |
Writes the output.
Abstract service.
tStep | Time step. |
forcedOutput | If true, no testTimeStepOutput should be done. |
Implements oofem::ExportModule.
Definition at line 63 of file homexportmodule.C.
References oofem::FloatArray::add(), oofem::ExportModule::emodel, oofem::EngngModel::giveDomain(), oofem::Domain::giveElements(), oofem::TimeStep::giveIntrinsicTime(), oofem::ExportModule::giveNumberOfRegions(), oofem::ExportModule::giveRegionSet(), oofem::FloatArray::giveSize(), ists, oofem::IntArray::resize(), scale, stream, oofem::ExportModule::testTimeStepOutput(), oofem::FloatArray::times(), and oofem::ExportModule::timeScale.
|
inlinevirtual |
Returns class name of the receiver.
Implements oofem::ExportModule.
Definition at line 79 of file homexportmodule.h.
|
inlinevirtual |
Definition at line 80 of file homexportmodule.h.
References _IFT_HOMExportModule_Name.
|
virtual |
Reimplemented from oofem::ExportModule.
Definition at line 111 of file homexportmodule.C.
References oofem::__InternalStateTypeToString(), oofem::ExportModule::emodel, oofem::EngngModel::giveOutputBaseFileName(), oofem::ExportModule::initialize(), oofem::ExportModule::initializeElementSet(), ists, OOFEM_ERROR, and stream.
|
virtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::ExportModule.
Definition at line 51 of file homexportmodule.C.
References _IFT_HOMExportModule_ISTs, _IFT_HOMExportModule_scale, oofem::ExportModule::initializeFrom(), IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, ists, and scale.
|
virtual |
Terminates the receiver.
The terminating messages should be printed. All the streams should be closed.
Reimplemented from oofem::ExportModule.
Definition at line 132 of file homexportmodule.C.
References stream.
|
protected |
Material numbers over which averaging is performed. - replaced by 'regionsets'.
Internal states to export
Definition at line 68 of file homexportmodule.h.
Referenced by doOutput(), initialize(), and initializeFrom().
|
protected |
Scale of all homogenized values.
Definition at line 62 of file homexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Stream for file.
Definition at line 64 of file homexportmodule.h.
Referenced by doOutput(), initialize(), and terminate().