|
OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
(Under development) The Matlab export module enables oofem to export the results to a textfile containing the description of the mesh used along with the pertinent results. More...
#include <matlabexportmodule.h>
Inheritance diagram for oofem::MatlabExportModule:
Collaboration diagram for oofem::MatlabExportModule:Public Member Functions | |
| MatlabExportModule (int n, EngngModel *e) | |
| virtual | ~MatlabExportModule () |
| 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... | |
| void | doOutputMesh (TimeStep *tStep, FILE *FID) |
| void | doOutputData (TimeStep *tStep, FILE *FID) |
| void | doOutputSpecials (TimeStep *tStep, FILE *FID) |
| void | doOutputReactionForces (TimeStep *tStep, FILE *FID) |
| void | doOutputIntegrationPointFields (TimeStep *tStep, FILE *FID) |
| void | doOutputHomogenizeDofIDs (TimeStep *tStep, FILE *FID) |
| 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 Member Functions | |
| FILE * | giveOutputStream (TimeStep *) |
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... | |
Protected Attributes | |
| IntArray | internalVarsToExport |
| list of InternalStateType values, identifying the selected vars for export More... | |
| IntArray | elList |
| IntArray | primaryVarsToExport |
| list of primary unknowns to export More... | |
| std::string | functionname |
| std::vector< double > | smax |
| std::vector< double > | smin |
| std::vector< double > | partVolume |
| std::vector< std::string > | partName |
| double | Area |
| double | Volume |
| int | ndim |
| bool | exportMesh |
| bool | exportData |
| bool | exportArea |
| bool | exportSpecials |
| bool | exportReactionForces |
| bool | exportIntegrationPointFields |
| bool | exportHomogenizeIST |
| int | reactionForcesNodeSet |
| int | dataNodeSet |
| int | IPFieldsElSet |
| bool | noscaling |
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... | |
Private Member Functions | |
| void | computeArea (TimeStep *tStep) |
Private Attributes | |
| IntArray | reactionForcesDofManList |
| IntArray | dataDofManList |
(Under development) The Matlab export module enables oofem to export the results to a textfile containing the description of the mesh used along with the pertinent results.
Definition at line 71 of file matlabexportmodule.h.
| oofem::MatlabExportModule::MatlabExportModule | ( | int | n, |
| EngngModel * | e | ||
| ) |
|
virtual |
Definition at line 90 of file matlabexportmodule.C.
|
private |
Definition at line 138 of file matlabexportmodule.C.
References Area, oofem::ExportModule::emodel, oofem::DofManager::giveCoordinate(), oofem::Domain::giveDofManager(), oofem::EngngModel::giveDomain(), oofem::Domain::giveElements(), oofem::Domain::giveNumberOfDofManagers(), oofem::Domain::giveNumberOfSpatialDimensions(), oofem::max(), oofem::min(), partName, partVolume, smax, smin, and Volume.
Referenced by doOutput().
|
virtual |
Writes the output.
Abstract service.
| tStep | Time step. |
| forcedOutput | If true, no testTimeStepOutput should be done. |
Implements oofem::ExportModule.
Definition at line 212 of file matlabexportmodule.C.
References Area, computeArea(), doOutputData(), doOutputHomogenizeDofIDs(), doOutputIntegrationPointFields(), doOutputMesh(), doOutputReactionForces(), doOutputSpecials(), elList, oofem::ExportModule::emodel, oofem::IntArray::enumerate(), exportArea, exportData, exportHomogenizeIST, exportIntegrationPointFields, exportMesh, exportReactionForces, exportSpecials, functionname, oofem::EngngModel::giveDomain(), oofem::Domain::giveNumberOfElements(), oofem::Domain::giveNumberOfSpatialDimensions(), giveOutputStream(), oofem::IntArray::giveSize(), oofem::TimeStep::giveTargetTime(), ndim, partName, partVolume, smax, smin, oofem::ExportModule::testTimeStepOutput(), and Volume.
| void oofem::MatlabExportModule::doOutputData | ( | TimeStep * | tStep, |
| FILE * | FID | ||
| ) |
Definition at line 338 of file matlabexportmodule.C.
References oofem::DofManager::begin(), dataDofManList, dataNodeSet, oofem::ExportModule::emodel, oofem::Domain::giveDofManager(), oofem::Domain::giveDofManagers(), oofem::EngngModel::giveDomain(), and oofem::Domain::giveSet().
Referenced by doOutput().
| void oofem::MatlabExportModule::doOutputHomogenizeDofIDs | ( | TimeStep * | tStep, |
| FILE * | FID | ||
| ) |
Definition at line 750 of file matlabexportmodule.C.
References oofem::__InternalStateTypeToString(), oofem::IntArray::at(), oofem::FloatArray::at(), oofem::Element::computeVolumeAreaOrLength(), elList, oofem::ExportModule::emodel, oofem::Element::giveDefaultIntegrationRulePtr(), oofem::EngngModel::giveDomain(), oofem::Domain::giveElement(), oofem::Element::giveInterpolation(), oofem::Element::giveIPValue(), oofem::IntArray::giveSize(), oofem::FloatArray::giveSize(), oofem::FEInterpolation::giveTransformationJacobian(), internalVarsToExport, noscaling, and oofem::FloatArray::times().
Referenced by doOutput().
| void oofem::MatlabExportModule::doOutputIntegrationPointFields | ( | TimeStep * | tStep, |
| FILE * | FID | ||
| ) |
Definition at line 590 of file matlabexportmodule.C.
References oofem::IntArray::at(), oofem::FloatArray::at(), oofem::Element::computeGlobalCoordinates(), elList, oofem::ExportModule::emodel, oofem::EngngModel::giveDomain(), oofem::Domain::giveElement(), oofem::Element::giveIntegrationRule(), oofem::Element::giveIPValue(), oofem::FEMComponent::giveNumber(), oofem::IntegrationRule::giveNumberOfIntegrationPoints(), oofem::Element::giveNumberOfIntegrationRules(), oofem::Domain::giveSet(), oofem::IntArray::giveSize(), oofem::FloatArray::giveSize(), internalVarsToExport, and IPFieldsElSet.
Referenced by doOutput().
| void oofem::MatlabExportModule::doOutputMesh | ( | TimeStep * | tStep, |
| FILE * | FID | ||
| ) |
Definition at line 306 of file matlabexportmodule.C.
References oofem::ExportModule::emodel, oofem::Domain::giveDofManagers(), oofem::EngngModel::giveDomain(), oofem::Domain::giveElement(), oofem::Domain::giveElements(), oofem::Element::giveNumberOfDofManagers(), and oofem::Domain::giveNumberOfSpatialDimensions().
Referenced by doOutput().
| void oofem::MatlabExportModule::doOutputReactionForces | ( | TimeStep * | tStep, |
| FILE * | FID | ||
| ) |
Definition at line 498 of file matlabexportmodule.C.
References oofem::IntArray::at(), oofem::FloatArray::at(), oofem::StructuralEngngModel::buildReactionTable(), oofem::IntArray::clear(), oofem::StructuralEngngModel::computeReaction(), oofem::IntArray::contains(), oofem::ExportModule::emodel, oofem::IntArray::findFirstIndexOf(), oofem::IntArray::followedBy(), oofem::Domain::giveDofManager(), oofem::EngngModel::giveDomain(), oofem::Domain::giveNumberOfDofManagers(), oofem::Domain::giveSet(), oofem::IntArray::giveSize(), OOFEM_ERROR, reactionForcesDofManList, and reactionForcesNodeSet.
Referenced by doOutput().
| void oofem::MatlabExportModule::doOutputSpecials | ( | TimeStep * | tStep, |
| FILE * | FID | ||
| ) |
Definition at line 404 of file matlabexportmodule.C.
References oofem::ExportModule::emodel, oofem::WeakPeriodicBoundaryCondition::giveBasisType(), oofem::Domain::giveBcs(), oofem::EngngModel::giveDomain(), oofem::PrescribedMean::giveInternalDofManager(), oofem::SolutionbasedShapeFunction::giveInternalDofManager(), oofem::WeakPeriodicBoundaryCondition::giveInternalDofManager(), and oofem::WeakPeriodicBoundaryCondition::giveNumberOfInternalDofManagers().
Referenced by doOutput().
|
inlinevirtual |
Returns class name of the receiver.
Implements oofem::ExportModule.
Definition at line 127 of file matlabexportmodule.h.
|
inlinevirtual |
Definition at line 128 of file matlabexportmodule.h.
References _IFT_MatlabExportModule_Name.
|
protected |
Definition at line 692 of file matlabexportmodule.C.
References oofem::ExportModule::emodel, functionname, oofem::TimeStep::giveNumber(), oofem::EngngModel::giveNumberOfProcesses(), oofem::EngngModel::giveOutputBaseFileName(), oofem::EngngModel::giveRank(), oofem::TimeStep::giveSubStepNumber(), oofem::EngngModel::isParallel(), oofem::ExportModule::number, OOFEM_ERROR, and oofem::ExportModule::testSubStepOutput().
Referenced by doOutput().
|
virtual |
Reimplemented from oofem::ExportModule.
Definition at line 680 of file matlabexportmodule.C.
References oofem::ExportModule::initialize().
|
virtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::ExportModule.
Definition at line 95 of file matlabexportmodule.C.
References _IFT_MatlabExportModule_area, _IFT_MatlabExportModule_data, _IFT_MatlabExportModule_DataNodeSet, _IFT_MatlabExportModule_DofManList, _IFT_MatlabExportModule_ElementList, _IFT_MatlabExportModule_homogenizeInternalVars, _IFT_MatlabExportModule_IntegrationPoints, _IFT_MatlabExportModule_internalVarsToExport, _IFT_MatlabExportModule_IPFieldsElSet, _IFT_MatlabExportModule_mesh, _IFT_MatlabExportModule_noScaledHomogenization, _IFT_MatlabExportModule_ReactionForces, _IFT_MatlabExportModule_ReactionForcesNodeSet, _IFT_MatlabExportModule_specials, dataNodeSet, elList, exportArea, exportData, exportHomogenizeIST, exportIntegrationPointFields, exportMesh, exportReactionForces, exportSpecials, oofem::InputRecord::hasField(), oofem::ExportModule::initializeFrom(), internalVarsToExport, IPFieldsElSet, IR_GIVE_OPTIONAL_FIELD, noscaling, reactionForcesDofManList, reactionForcesNodeSet, and oofem::IntArray::resize().
|
virtual |
Terminates the receiver.
The terminating messages should be printed. All the streams should be closed.
Reimplemented from oofem::ExportModule.
Definition at line 687 of file matlabexportmodule.C.
|
protected |
Definition at line 88 of file matlabexportmodule.h.
Referenced by computeArea(), and doOutput().
|
private |
Definition at line 110 of file matlabexportmodule.h.
Referenced by doOutputData().
|
protected |
Definition at line 100 of file matlabexportmodule.h.
Referenced by doOutputData(), and initializeFrom().
|
protected |
Definition at line 76 of file matlabexportmodule.h.
Referenced by doOutput(), doOutputHomogenizeDofIDs(), doOutputIntegrationPointFields(), and initializeFrom().
|
protected |
Definition at line 93 of file matlabexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Definition at line 92 of file matlabexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Definition at line 97 of file matlabexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Definition at line 96 of file matlabexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Definition at line 91 of file matlabexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Definition at line 95 of file matlabexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Definition at line 94 of file matlabexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Definition at line 79 of file matlabexportmodule.h.
Referenced by doOutput(), and giveOutputStream().
|
protected |
list of InternalStateType values, identifying the selected vars for export
Definition at line 75 of file matlabexportmodule.h.
Referenced by doOutputHomogenizeDofIDs(), doOutputIntegrationPointFields(), and initializeFrom().
|
protected |
Definition at line 101 of file matlabexportmodule.h.
Referenced by doOutputIntegrationPointFields(), and initializeFrom().
|
protected |
Definition at line 89 of file matlabexportmodule.h.
Referenced by doOutput().
|
protected |
Definition at line 103 of file matlabexportmodule.h.
Referenced by doOutputHomogenizeDofIDs(), and initializeFrom().
|
protected |
Definition at line 86 of file matlabexportmodule.h.
Referenced by computeArea(), and doOutput().
|
protected |
Definition at line 85 of file matlabexportmodule.h.
Referenced by computeArea(), and doOutput().
|
protected |
list of primary unknowns to export
Definition at line 78 of file matlabexportmodule.h.
|
private |
Definition at line 109 of file matlabexportmodule.h.
Referenced by doOutputReactionForces(), and initializeFrom().
|
protected |
Definition at line 99 of file matlabexportmodule.h.
Referenced by doOutputReactionForces(), and initializeFrom().
|
protected |
Definition at line 82 of file matlabexportmodule.h.
Referenced by computeArea(), and doOutput().
|
protected |
Definition at line 83 of file matlabexportmodule.h.
Referenced by computeArea(), and doOutput().
|
protected |
Definition at line 88 of file matlabexportmodule.h.
Referenced by computeArea(), and doOutput().