OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Represents output manager. More...
#include <outputmanager.h>
Public Member Functions | |
OutputManager (Domain *d) | |
Creates empty Output Manager. By default all components are selected. More... | |
IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
void | doDofManOutput (FILE *, TimeStep *) |
Does the dofmanager output. More... | |
void | doElementOutput (FILE *, TimeStep *) |
Does the element output. More... | |
int | testDofManOutput (int, TimeStep *) |
Tests if given dof manager is required to do its output for given time step. More... | |
int | testElementOutput (int, TimeStep *) |
Tests if given element is required to do its output for given time step. More... | |
int | _testDofManOutput (int number) |
Tests if given dof manager is required to do its output. More... | |
int | _testElementOutput (int number) |
Tests if given element is required to do its output. More... | |
int | testTimeStepOutput (TimeStep *) |
Tests if given time step output is required. More... | |
const char * | giveClassName () const |
prints simple error message and exits More... | |
void | beCopyOf (OutputManager *om) |
Receiver becomes shallow copy of the argument. More... | |
Protected Attributes | |
Domain * | domain |
Domain pointer. More... | |
int | 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... | |
int | dofman_all_out_flag |
Indicates all dofmanagers are selected. More... | |
std::list< Range > | dofman_out |
List of dofmanager numbers or their ranges being selected. More... | |
std::list< Range > | dofman_except |
List of dofmanager numbers or their ranges being excluded. More... | |
int | element_all_out_flag |
Indicates all elements are selected. More... | |
std::list< Range > | element_out |
List of element numbers or their ranges being selected. More... | |
std::list< Range > | element_except |
List of element numbers or their ranges being excluded. More... | |
Represents output manager.
It controls and manages the time step output. Allows to filter output to certain time steps, dof managers and elements. For particular component (time step, dofmanager or element) it is possible to filter its output using following modes:
The output will be done for particular component if it is selected and is not excluded. The output for given time step is done only if this step is selected by one of above described method. The output for dofmanagers and elements in given step is done only if particular time step is selected and if particular dofmanager or element is selected.
Definition at line 81 of file outputmanager.h.
oofem::OutputManager::OutputManager | ( | Domain * | d | ) |
Creates empty Output Manager. By default all components are selected.
Definition at line 43 of file outputmanager.C.
References dofman_all_out_flag, domain, element_all_out_flag, tstep_all_out_flag, and tstep_step_out.
int oofem::OutputManager::_testDofManOutput | ( | int | number | ) |
Tests if given dof manager is required to do its output.
The time step is not considered.
Definition at line 139 of file outputmanager.C.
References dofman_all_out_flag, dofman_except, dofman_out, oofem::DofManager_null, domain, oofem::Domain::giveDofManager(), oofem::DofManager::giveLabel(), and oofem::DofManager::giveParallelMode().
Referenced by doDofManOutput(), and testDofManOutput().
int oofem::OutputManager::_testElementOutput | ( | int | number | ) |
Tests if given element is required to do its output.
The time step is not considered.
Definition at line 183 of file outputmanager.C.
References domain, element_all_out_flag, element_except, element_out, oofem::Element_remote, oofem::Domain::giveElement(), oofem::Element::giveLabel(), and oofem::Element::giveParallelMode().
Referenced by doElementOutput(), and testElementOutput().
void oofem::OutputManager::beCopyOf | ( | OutputManager * | om | ) |
Receiver becomes shallow copy of the argument.
Shallow here means that only tstep_all_out_flag, tstep_step_out, dofman_all_out_flag, and element_all_out_flag are copied.
Definition at line 274 of file outputmanager.C.
References dofman_all_out_flag, element_all_out_flag, tstep_all_out_flag, and tstep_step_out.
void oofem::OutputManager::doDofManOutput | ( | FILE * | file, |
TimeStep * | tStep | ||
) |
Does the dofmanager output.
All selected dofmanagers are requested for doing their output using printOutputAt service.
Definition at line 78 of file outputmanager.C.
References _testDofManOutput(), dofman_all_out_flag, dofman_except, oofem::DofManager_null, domain, oofem::Domain::giveDofManager(), oofem::Domain::giveNumberOfDofManagers(), oofem::DofManager::giveParallelMode(), oofem::DofManager::printOutputAt(), and testTimeStepOutput().
Referenced by oofem::NonLinearDynamic::printOutputAt(), oofem::NonLinearStatic::printOutputAt(), and oofem::NlDEIDynamic::printOutputAt().
void oofem::OutputManager::doElementOutput | ( | FILE * | file, |
TimeStep * | tStep | ||
) |
Does the element output.
All selected elements are requested for doing their output using printOutputAt service.
Definition at line 109 of file outputmanager.C.
References _testElementOutput(), domain, element_all_out_flag, element_except, oofem::Element_remote, oofem::Domain::giveElement(), oofem::Domain::giveElements(), oofem::Domain::giveNumberOfElements(), oofem::Element::printOutputAt(), and testTimeStepOutput().
Referenced by oofem::NonLinearDynamic::printOutputAt(), oofem::NonLinearStatic::printOutputAt(), and oofem::NlDEIDynamic::printOutputAt().
|
inline |
prints simple error message and exits
Definition at line 153 of file outputmanager.h.
IRResultType oofem::OutputManager::initializeFrom | ( | InputRecord * | ir | ) |
Initializes receiver according to object description stored in input record.
Definition at line 52 of file outputmanager.C.
References _IFT_OutputManager_dofmanall, _IFT_OutputManager_dofmanexcept, _IFT_OutputManager_dofmanoutput, _IFT_OutputManager_elementall, _IFT_OutputManager_elementexcept, _IFT_OutputManager_elementoutput, _IFT_OutputManager_tstepall, _IFT_OutputManager_tstepsout, _IFT_OutputManager_tstepstep, dofman_all_out_flag, dofman_except, dofman_out, element_all_out_flag, element_except, element_out, oofem::InputRecord::hasField(), IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_OK, tstep_all_out_flag, tstep_step_out, and tsteps_out.
int oofem::OutputManager::testDofManOutput | ( | int | num, |
TimeStep * | tStep | ||
) |
Tests if given dof manager is required to do its output for given time step.
Definition at line 250 of file outputmanager.C.
References _testDofManOutput(), and testTimeStepOutput().
Referenced by oofem::StructuralEngngModel::printReactionForces().
int oofem::OutputManager::testElementOutput | ( | int | num, |
TimeStep * | tStep | ||
) |
Tests if given element is required to do its output for given time step.
Definition at line 262 of file outputmanager.C.
References _testElementOutput(), and testTimeStepOutput().
int oofem::OutputManager::testTimeStepOutput | ( | TimeStep * | tStep | ) |
Tests if given time step output is required.
Definition at line 227 of file outputmanager.C.
References domain, oofem::Domain::giveEngngModel(), oofem::TimeStep::giveNumber(), oofem::EngngModel::giveNumberOfFirstStep(), tstep_all_out_flag, tstep_step_out, and tsteps_out.
Referenced by doDofManOutput(), doElementOutput(), oofem::LinearStability::printOutputAt(), testDofManOutput(), and testElementOutput().
|
protected |
Indicates all dofmanagers are selected.
Definition at line 94 of file outputmanager.h.
Referenced by _testDofManOutput(), beCopyOf(), doDofManOutput(), initializeFrom(), and OutputManager().
|
protected |
List of dofmanager numbers or their ranges being excluded.
Definition at line 98 of file outputmanager.h.
Referenced by _testDofManOutput(), doDofManOutput(), and initializeFrom().
|
protected |
List of dofmanager numbers or their ranges being selected.
Definition at line 96 of file outputmanager.h.
Referenced by _testDofManOutput(), and initializeFrom().
|
protected |
Domain pointer.
Definition at line 85 of file outputmanager.h.
Referenced by _testDofManOutput(), _testElementOutput(), doDofManOutput(), doElementOutput(), OutputManager(), and testTimeStepOutput().
|
protected |
Indicates all elements are selected.
Definition at line 101 of file outputmanager.h.
Referenced by _testElementOutput(), beCopyOf(), doElementOutput(), initializeFrom(), and OutputManager().
|
protected |
List of element numbers or their ranges being excluded.
Definition at line 105 of file outputmanager.h.
Referenced by _testElementOutput(), doElementOutput(), and initializeFrom().
|
protected |
List of element numbers or their ranges being selected.
Definition at line 103 of file outputmanager.h.
Referenced by _testElementOutput(), and initializeFrom().
|
protected |
Indicates all steps selection.
Definition at line 87 of file outputmanager.h.
Referenced by beCopyOf(), initializeFrom(), OutputManager(), and testTimeStepOutput().
|
protected |
User timeStep Output step. Indicates every tstep_step_out-th step selected.
Definition at line 89 of file outputmanager.h.
Referenced by beCopyOf(), initializeFrom(), OutputManager(), and testTimeStepOutput().
|
protected |
List of user selected step numbers.
Definition at line 91 of file outputmanager.h.
Referenced by initializeFrom(), and testTimeStepOutput().