OOFEM 3.0
Loading...
Searching...
No Matches
oofem::OutputManager Class Reference

#include <outputmanager.h>

Collaboration diagram for oofem::OutputManager:

Public Member Functions

 OutputManager (Domain *d)
 Creates empty Output Manager. By default all components are selected.
void initializeFrom (InputRecord &ir)
 Initializes receiver according to object description stored in input record.
void doDofManOutput (FILE *, TimeStep *)
void doElementOutput (FILE *, TimeStep *)
int testDofManOutput (int, TimeStep *)
int testElementOutput (int, TimeStep *)
int _testDofManOutput (int number)
int _testElementOutput (int number)
int testTimeStepOutput (TimeStep *)
const char * giveClassName () const
 prints simple error message and exits
void beCopyOf (OutputManager *om)

Protected Attributes

Domaindomain
 Domain pointer.
int tstep_all_out_flag
 Indicates all steps selection.
int tstep_step_out
 User timeStep Output step. Indicates every tstep_step_out-th step selected.
std ::list< Rangetsteps_out
 List of user selected step numbers.
int dofman_all_out_flag
 Indicates all dofmanagers are selected.
std ::list< Rangedofman_out
 List of dofmanager numbers or their ranges being selected.
std ::list< Rangedofman_except
 List of dofmanager numbers or their ranges being excluded.
int element_all_out_flag
 Indicates all elements are selected.
std ::list< Rangeelement_out
 List of element numbers or their ranges being selected.
std ::list< Rangeelement_except
 List of element numbers or their ranges being excluded.

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

◆ OutputManager()

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, dofman_except, dofman_out, domain, element_all_out_flag, element_except, element_out, tstep_all_out_flag, and tstep_step_out.

Referenced by beCopyOf().

Member Function Documentation

◆ _testDofManOutput()

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 135 of file outputmanager.C.

References dofman_all_out_flag, dofman_except, dofman_out, oofem::DofManager_null, and domain.

Referenced by doDofManOutput(), and testDofManOutput().

◆ _testElementOutput()

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 179 of file outputmanager.C.

References domain, element_all_out_flag, element_except, element_out, and oofem::Element_remote.

Referenced by doElementOutput(), and testElementOutput().

◆ beCopyOf()

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 270 of file outputmanager.C.

References dofman_all_out_flag, element_all_out_flag, OutputManager(), tstep_all_out_flag, and tstep_step_out.

◆ doDofManOutput()

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 74 of file outputmanager.C.

References _testDofManOutput(), dofman_all_out_flag, dofman_except, oofem::DofManager_null, domain, and testTimeStepOutput().

◆ doElementOutput()

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 105 of file outputmanager.C.

References _testElementOutput(), domain, element_all_out_flag, element_except, oofem::Element_remote, and testTimeStepOutput().

◆ giveClassName()

const char * oofem::OutputManager::giveClassName ( ) const
inline

prints simple error message and exits

Definition at line 153 of file outputmanager.h.

◆ initializeFrom()

◆ testDofManOutput()

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 246 of file outputmanager.C.

References _testDofManOutput(), and testTimeStepOutput().

Referenced by oofem::TransientTransportProblem::printOutputAt(), and oofem::StructuralEngngModel::printReactionForces().

◆ testElementOutput()

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 258 of file outputmanager.C.

References _testElementOutput(), and testTimeStepOutput().

◆ testTimeStepOutput()

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

Tests if given time step output is required.

Returns
nonzero if output required.

Definition at line 223 of file outputmanager.C.

References domain, oofem::TimeStep::giveNumber(), tstep_all_out_flag, tstep_step_out, and tsteps_out.

Referenced by doDofManOutput(), doElementOutput(), oofem::LinearStability::printOutputAt(), testDofManOutput(), and testElementOutput().

Member Data Documentation

◆ dofman_all_out_flag

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().

◆ dofman_except

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(), initializeFrom(), and OutputManager().

◆ dofman_out

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(), initializeFrom(), and OutputManager().

◆ domain

Domain* oofem::OutputManager::domain
protected

◆ element_all_out_flag

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().

◆ element_except

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(), initializeFrom(), and OutputManager().

◆ element_out

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(), initializeFrom(), and OutputManager().

◆ tstep_all_out_flag

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().

◆ tstep_step_out

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().

◆ tsteps_out

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-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011