OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::OutputManager Class Reference

Represents output manager. More...

#include <outputmanager.h>

+ Collaboration diagram for oofem::OutputManager:

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

Domaindomain
 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< Rangetsteps_out
 List of user selected step numbers. More...
 
int dofman_all_out_flag
 Indicates all dofmanagers are selected. More...
 
std::list< Rangedofman_out
 List of dofmanager numbers or their ranges being selected. More...
 
std::list< Rangedofman_except
 List of dofmanager numbers or their ranges being excluded. More...
 
int element_all_out_flag
 Indicates all elements are selected. More...
 
std::list< Rangeelement_out
 List of element numbers or their ranges being selected. More...
 
std::list< Rangeelement_except
 List of element numbers or their ranges being excluded. More...
 

Detailed Description

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:

  • All component can be selected.
  • Particular component can be selected. Particular time steps can be selected by specifying their list or by specifying outputStep - the each n-th step will be selected starting from firstStep (see engngModel). Particular dofmanagers and elements can be selected by specifying their list. The member of list can be component number or range of component numbers.
  • Particular components can be excluded from selection.

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

int oofem::OutputManager::_testDofManOutput ( int  number)

Tests if given dof manager is required to do its output.

The time step is not considered.

Returns
nonzero if output required.

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.

Returns
nonzero if output required.

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 
)
void oofem::OutputManager::doElementOutput ( FILE *  file,
TimeStep tStep 
)
const char* oofem::OutputManager::giveClassName ( ) const
inline

prints simple error message and exits

Definition at line 153 of file outputmanager.h.

int oofem::OutputManager::testDofManOutput ( int  num,
TimeStep tStep 
)

Tests if given dof manager is required to do its output for given time step.

Returns
nonzero if output required.

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.

Returns
nonzero if output required.

Definition at line 262 of file outputmanager.C.

References _testElementOutput(), and testTimeStepOutput().

int oofem::OutputManager::testTimeStepOutput ( TimeStep tStep)

Member Data Documentation

int oofem::OutputManager::dofman_all_out_flag
protected

Indicates all dofmanagers are selected.

Definition at line 94 of file outputmanager.h.

Referenced by _testDofManOutput(), beCopyOf(), doDofManOutput(), initializeFrom(), and OutputManager().

std :: list< Range > oofem::OutputManager::dofman_except
protected

List of dofmanager numbers or their ranges being excluded.

Definition at line 98 of file outputmanager.h.

Referenced by _testDofManOutput(), doDofManOutput(), and initializeFrom().

std :: list< Range > oofem::OutputManager::dofman_out
protected

List of dofmanager numbers or their ranges being selected.

Definition at line 96 of file outputmanager.h.

Referenced by _testDofManOutput(), and initializeFrom().

Domain* oofem::OutputManager::domain
protected
int oofem::OutputManager::element_all_out_flag
protected

Indicates all elements are selected.

Definition at line 101 of file outputmanager.h.

Referenced by _testElementOutput(), beCopyOf(), doElementOutput(), initializeFrom(), and OutputManager().

std :: list< Range > oofem::OutputManager::element_except
protected

List of element numbers or their ranges being excluded.

Definition at line 105 of file outputmanager.h.

Referenced by _testElementOutput(), doElementOutput(), and initializeFrom().

std :: list< Range > oofem::OutputManager::element_out
protected

List of element numbers or their ranges being selected.

Definition at line 103 of file outputmanager.h.

Referenced by _testElementOutput(), and initializeFrom().

int oofem::OutputManager::tstep_all_out_flag
protected

Indicates all steps selection.

Definition at line 87 of file outputmanager.h.

Referenced by beCopyOf(), initializeFrom(), OutputManager(), and testTimeStepOutput().

int oofem::OutputManager::tstep_step_out
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().

std :: list< Range > oofem::OutputManager::tsteps_out
protected

List of user selected step numbers.

Definition at line 91 of file outputmanager.h.

Referenced by initializeFrom(), and testTimeStepOutput().


The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011