|
OOFEM
2.1
|
Abstract base class representing the "problem" under consideration. More...
#include <engngm.h>
Inheritance diagram for oofem::EngngModel:
Collaboration diagram for oofem::EngngModel:Public Types | |||||
| enum | EngngModel_UpdateMode { EngngModel_Unknown_Mode, EngngModel_SUMM_Mode, EngngModel_SET_Mode } | ||||
| enum | EngngModelCommType { PC_default, PC_nonlocal } | ||||
| enum | InitialGuess { IG_None = 0, IG_Tangent = 1 } | ||||
| Means to choose methods for finding a good initial guess. More... | |||||
Public Member Functions | |||||
| EngngModel (int i, EngngModel *_master=NULL) | |||||
| Constructor. | |||||
| virtual | ~EngngModel () | ||||
| Destructor. | |||||
| Domain * | giveDomain (int n) | ||||
| Service for accessing particular problem domain. | |||||
| void | setDomain (int i, Domain *ptr) | ||||
| Sets i-th domain of receiver. | |||||
| int | giveNumberOfDomains () | ||||
| Returns number of domains in problem. | |||||
| virtual ErrorEstimator * | giveDomainErrorEstimator (int n) | ||||
| Service for accessing ErrorEstimator corresponding to particular domain. | |||||
| virtual MaterialInterface * | giveMaterialInterface (int n) | ||||
| Returns material interface representation for given domain. | |||||
| XfemManager * | giveXfemManager (int n) | ||||
| Returns XfemManager at a particular position. | |||||
| bool | hasXfemManager (int n) | ||||
| Return true if XfemManager at a particular position is available. | |||||
| void | setNumberOfEquations (int id, int neq) | ||||
| FILE * | giveOutputStream () | ||||
| Returns file descriptor of output file. | |||||
| std::string | giveOutputBaseFileName () | ||||
| Returns base output file name to which extensions, like .out .vtu .osf should be added. | |||||
| void | letOutputBaseFileNameBe (const std::string &src) | ||||
| Sets the base output file name. | |||||
| ContextOutputMode | giveContextOutputMode () | ||||
| Returns domain context output mode. | |||||
| int | giveContextOutputStep () | ||||
| Returns domain context output step. | |||||
| void | setContextOutputMode (ContextOutputMode contextMode) | ||||
| Sets context output mode of receiver. | |||||
| void | setUDContextOutputMode (int cStep) | ||||
| Sets user defined context output mode (it sets contextOutputMode to contextOutputMode), setting contextOutputStep to given value. | |||||
| void | setProblemMode (problemMode pmode) | ||||
| Sets domain mode to given mode. | |||||
| void | setParallelMode (bool parallelFlag) | ||||
| Sets the problem to run in parallel (or not). | |||||
| problemMode | giveProblemMode () | ||||
| Returns domain mode. | |||||
| void | setProblemScale (problemScale pscale) | ||||
| Sets scale in multiscale simulation. | |||||
| problemScale | giveProblemScale () | ||||
| Returns scale in multiscale simulation. | |||||
| virtual void | setRenumberFlag () | ||||
| Sets the renumber flag to true. | |||||
| virtual void | resetRenumberFlag () | ||||
| Sets the renumber flag to false. | |||||
| void | terminateAnalysis () | ||||
| Performs analysis termination after finishing analysis. | |||||
| virtual void | solveYourself () | ||||
| Starts solution process. | |||||
| virtual void | solveYourselfAt (TimeStep *tStep) | ||||
| Solves problem for given time step. | |||||
| virtual void | terminate (TimeStep *tStep) | ||||
| Terminates the solution of time step. | |||||
| virtual void | doStepOutput (TimeStep *tStep) | ||||
| Prints the ouput of the solution step (using virtual this->printOutputAtservice) to the stream detemined using this->giveOutputStream() method and calls exportModuleManager to do output. | |||||
| void | saveStepContext (TimeStep *tStep) | ||||
| Saves context of given solution step, if required (determined using this->giveContextOutputMode() method). | |||||
| virtual void | updateYourself (TimeStep *tStep) | ||||
| Updates internal state after finishing time step. | |||||
| virtual void | initializeYourself (TimeStep *tStep) | ||||
| Provides the opportunity to initialize state variables stored in element integration points according to initial conditions using function initializeYourself() on element level. | |||||
| virtual int | initializeAdaptive (int stepNumber) | ||||
| Initializes the newly generated discretization state according to previous solution. | |||||
| virtual int | giveNumberOfEquations (EquationID eid) | ||||
| Returns total number of equations in active (current time step) time step. | |||||
| virtual int | giveNumberOfPrescribedEquations (EquationID eid) | ||||
| Returns total number of prescribed equations in active (current time step) time step. | |||||
| virtual int | giveNumberOfDomainEquations (int di, EquationID eid) | ||||
| Returns number of equations for given domain in active (current time step) time step. | |||||
| virtual int | giveNumberOfPrescribedDomainEquations (int di, EquationID eid) | ||||
| Returns number of prescribed equations for given domain in active (current time step) time step. | |||||
| virtual CharType | giveTypeOfComponent (NumericalCmpn) | ||||
| Provides backward mapping between numerical component and characteristic component on EngngModel level. | |||||
| virtual double | giveUnknownComponent (EquationID, ValueModeType, TimeStep *, Domain *, Dof *) | ||||
| Returns requested unknown. | |||||
| virtual double | giveUnknownComponent (UnknownType, ValueModeType, TimeStep *, Domain *, Dof *) | ||||
| int | updateSharedDofManagers (FloatArray &answer, int ExchangeTag) | ||||
| Exchanges necessary remote DofManagers data. | |||||
| int | updateSharedPrescribedDofManagers (FloatArray &answer, int ExchangeTag) | ||||
| Exchanges necessary remote prescribed DofManagers data. | |||||
| int | exchangeRemoteElementData (int ExchangeTag) | ||||
| Exchanges necessary remote element data with remote partitions. | |||||
| int | packRemoteElementData (ProcessCommunicator &processComm) | ||||
| Packs data of local element to be received by their remote counterpart on remote partitions. | |||||
| int | unpackRemoteElementData (ProcessCommunicator &processComm) | ||||
| Unpacks data for remote elements (which are mirrors of remote partition's local elements). | |||||
| int | packDofManagers (FloatArray *src, ProcessCommunicator &processComm) | ||||
| Packing function for vector values of DofManagers. | |||||
| int | packPrescribedDofManagers (FloatArray *src, ProcessCommunicator &processComm) | ||||
| Packing function for vector values of DofManagers. | |||||
| int | unpackDofManagers (FloatArray *dest, ProcessCommunicator &processComm) | ||||
| Unpacking function for vector values of DofManagers . | |||||
| int | unpackPrescribedDofManagers (FloatArray *dest, ProcessCommunicator &processComm) | ||||
| Unpacking function for vector values of DofManagers . | |||||
| void | initializeCommMaps (bool forceInit=false) | ||||
| ProblemCommunicator * | giveProblemCommunicator (EngngModelCommType t) | ||||
| virtual int | instanciateYourself (DataReader *dr, InputRecord *ir, const char *outFileName, const char *desc) | ||||
| Initializes whole problem according to its description stored in inputStream. | |||||
| void | Instanciate_init (const char *dataOutputFileName, int ndomains) | ||||
| Initialization of the receiver state (opening the default output stream, empty domain creation, initialization of PETSc context, etc) before Initialization form DataReader. | |||||
| virtual IRResultType | initializeFrom (InputRecord *ir) | ||||
| Initializes receiver according to object description in input reader. | |||||
| int | instanciateDomains (DataReader *dr) | ||||
| Instanciate problem domains by calling their instanciateYourself() service. | |||||
| int | instanciateMetaSteps (DataReader *dr) | ||||
| Instanciate problem meta steps by calling their instanciateYourself() service. | |||||
| virtual int | instanciateDefaultMetaStep (InputRecord *ir) | ||||
| Instanciate default metastep, if nmsteps is zero. | |||||
| virtual void | updateAttributes (MetaStep *mStep) | ||||
| Update receiver attributes according to step metaStep attributes. | |||||
| void | initMetaStepAttributes (MetaStep *mStep) | ||||
| Update e-model attributes attributes according to step metaStep attributes. | |||||
| virtual contextIOResultType | saveContext (DataStream *stream, ContextMode mode, void *obj=NULL) | ||||
| Stores the state of model to output stream. | |||||
| virtual contextIOResultType | restoreContext (DataStream *stream, ContextMode mode, void *obj=NULL) | ||||
| Restores the state of model from output stream. | |||||
| virtual void | updateDomainLinks () | ||||
| Updates domain links after the domains of receiver have changed. | |||||
| void | resolveCorrespondingStepNumber (int &, int &, void *obj) | ||||
| MetaStep * | giveCurrentMetaStep () | ||||
| Returns current meta step. | |||||
| TimeStep * | giveCurrentStep () | ||||
| Returns current time step. | |||||
| TimeStep * | givePreviousStep () | ||||
| Returns previous time step. | |||||
| virtual TimeStep * | giveNextStep () | ||||
| Returns next time step (next to current step) of receiver. | |||||
| virtual TimeStep * | giveSolutionStepWhenIcApply () | ||||
| Returns the solution step when Initial Conditions (IC) apply. | |||||
| virtual int | giveNumberOfFirstStep () | ||||
| Returns number of first time step used by receiver. | |||||
| int | giveNumberOfMetaSteps () | ||||
| Return number of meta steps. | |||||
| MetaStep * | giveMetaStep (int i) | ||||
| Returns the i-th meta step. | |||||
| int | giveNumberOfSteps () | ||||
| Returns total number of steps. | |||||
| virtual double | giveEndOfTimeOfInterest () | ||||
| Returns end of time interest (time corresponding to end of time integration). | |||||
| virtual int | giveNumberOfTimeStepWhenIcApply () | ||||
| Returns the time step number, when initial conditions should apply. | |||||
| virtual NumericalMethod * | giveNumericalMethod (MetaStep *mStep) | ||||
| Returns reference to receiver's numerical method. | |||||
| ExportModuleManager * | giveExportModuleManager () | ||||
| Returns receiver's export module manager. | |||||
| EngngModelTimer * | giveTimer () | ||||
| Returns reference to receiver timer (EngngModelTimer). | |||||
| virtual int | giveNewEquationNumber (int domain, DofIDItem) | ||||
| Increases number of equations of receiver's domain and returns newly created equation number. | |||||
| virtual int | giveNewPrescribedEquationNumber (int domain, DofIDItem) | ||||
| Increases number of prescribed equations of receiver's domain and returns newly created equation number. | |||||
| int | giveContextFile (FILE **contextFile, int stepNumber, int stepVersion, ContextFileMode cmode, int errLevel=1) | ||||
| Assigns context file-descriptor for given step number to stream. | |||||
| bool | testContextFile (int stepNumber, int stepVersion) | ||||
| Returns true if context file for given step and version is available. | |||||
| DataReader * | GiveDomainDataReader (int domainNum, int domainSerNum, ContextFileMode cmode) | ||||
| Creates new DataReader for given domain. | |||||
| virtual void | updateComponent (TimeStep *tStep, NumericalCmpn cmpn, Domain *d) | ||||
| Updates components mapped to numerical method if necessary during solution process. | |||||
| virtual void | initStepIncrements () | ||||
| Initializes solution of new time step. | |||||
| virtual int | forceEquationNumbering (int i) | ||||
| Forces equation renumbering on given domain. | |||||
| virtual int | forceEquationNumbering () | ||||
| Forces equation renumbering on all domains associated to engng model. | |||||
| virtual int | requiresUnknownsDictionaryUpdate () | ||||
| Indicates if EngngModel requires Dofs dictionaries to be updated. | |||||
| virtual bool | requiresEquationRenumbering (TimeStep *tStep) | ||||
| Returns true if equation renumbering is required for given solution step. | |||||
| virtual void | updateDofUnknownsDictionary (DofManager *, TimeStep *) | ||||
| Updates necessary values in Dofs unknown dictionaries. | |||||
| virtual int | giveUnknownDictHashIndx (EquationID type, ValueModeType mode, TimeStep *stepN) | ||||
| This method is responsible for computing unique dictionary id (ie hash value) from given equationId, valueModeType and time step. | |||||
| virtual UnknownNumberingScheme & | giveUnknownNumberingScheme (EquationID type) | ||||
| Returns UnknownNUmberingScheme related to given EquationID. | |||||
| virtual void | giveElementCharacteristicMatrix (FloatMatrix &answer, int num, CharType type, TimeStep *tStep, Domain *domain) | ||||
| Returns characteristic matrix of element. | |||||
| virtual void | giveElementCharacteristicVector (FloatArray &answer, int num, CharType type, ValueModeType mode, TimeStep *tStep, Domain *domain) | ||||
| Returns characteristic vector of element. | |||||
| virtual PetscContext * | givePetscContext (int n, EquationID eid) | ||||
| Returns the PETSc context corresponding to given domain (n) and unknown type Default implementation returns i-th context from petscContextList. | |||||
| virtual void | initPetscContexts () | ||||
| Creates PETSc contexts. | |||||
| virtual void | assemble (SparseMtrx *answer, TimeStep *tStep, EquationID eid, CharType type, const UnknownNumberingScheme &s, Domain *domain) | ||||
| Assembles characteristic matrix of required type into given sparse matrix. | |||||
| virtual void | assemble (SparseMtrx *answer, TimeStep *tStep, EquationID eid, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, Domain *domain) | ||||
| Assembles characteristic matrix of required type into given sparse matrix. | |||||
| virtual void | assemble (SparseMtrx *answer, TimeStep *tStep, EquationID r_id, EquationID c_id, CharType type, const UnknownNumberingScheme &s, Domain *domain) | ||||
| Assembles characteristic matrix of required type into given sparse matrix. | |||||
| double | assembleVector (FloatArray &answer, TimeStep *tStep, EquationID eid, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL) | ||||
| Assembles characteristic vector of required type from dofManagers, element, and active boundary conditions, into given vector. | |||||
| double | assembleVectorFromDofManagers (FloatArray &answer, TimeStep *tStep, EquationID eid, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL) | ||||
| Assembles characteristic vector of required type from dofManagers into given vector. | |||||
| double | assembleVectorFromElements (FloatArray &answer, TimeStep *tStep, EquationID eid, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL) | ||||
| Assembles characteristic vector of required type from elements into given vector. | |||||
| double | assembleVectorFromActiveBC (FloatArray &answer, TimeStep *tStep, EquationID eid, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL) | ||||
| Assembles characteristic vector of required type from active boundary conditions. | |||||
| void | assembleExtrapolatedForces (FloatArray &answer, TimeStep *tStep, EquationID eid, CharType type, Domain *domain) | ||||
| Assembles the extrapolated internal forces vector, useful for obtaining a good initial guess in nonlinear analysis with Dirichlet boundary conditions. | |||||
| virtual int | checkConsistency () | ||||
| Allows programmer to test some receiver's internal data, before computation begins. | |||||
| virtual int | checkProblemConsistency () | ||||
| Allows programmer to test problem its internal data, before computation begins. | |||||
| virtual void | init () | ||||
| Initializes the receiver state. | |||||
| virtual void | printOutputAt (FILE *file, TimeStep *tStep) | ||||
| Prints output of receiver to output domain stream, for given time step. | |||||
| void | printYourself () | ||||
| Prints state of receiver. Useful for debugging. | |||||
| virtual void | printDofOutputAt (FILE *stream, Dof *iDof, TimeStep *atTime)=0 | ||||
| DOF printing routine. | |||||
| virtual const char * | giveClassName () const | ||||
| Returns class name of the receiver. | |||||
| virtual classType | giveClassID () const | ||||
| Returns classType id of receiver. | |||||
| virtual int | isIncremental () | ||||
| Returns nonzero if receiver does incremental analysis. | |||||
| virtual int | useNonlocalStiffnessOption () | ||||
| Returns nonzero if nonlocal stiffness option activated. | |||||
| bool | isParallel () | ||||
| Returns true if receiver in parallel mode. | |||||
| virtual fMode | giveFormulation () | ||||
| Indicates type of non linear computation (total or updated formulation). | |||||
| EngngModelContext * | giveContext () | ||||
| Context requesting service. | |||||
| virtual int | giveNumberOfSlaveProblems () | ||||
| Returns number of slave problems. | |||||
| virtual EngngModel * | giveSlaveProblem (int i) | ||||
| Returns i-th slave problem. | |||||
| virtual bool | giveEquationScalingFlag () | ||||
| Returns the Equation scaling flag, which is used to indicate that governing equation(s) are scaled, or non-dimensionalized. | |||||
| virtual double | giveVariableScale (VarScaleType varId) | ||||
| Returns the scale factor for given variable type. | |||||
| virtual int | estimateMaxPackSize (IntArray &commMap, CommunicationBuffer &buff, int packUnpackType) | ||||
| Determines the space necessary for send/receive buffer. | |||||
| virtual void | balanceLoad (TimeStep *tStep) | ||||
| Recovers the load balance between processors, if needed. | |||||
| virtual LoadBalancer * | giveLoadBalancer () | ||||
| Returns reference to receiver's load balancer. | |||||
| virtual LoadBalancerMonitor * | giveLoadBalancerMonitor () | ||||
| Returns reference to receiver's load balancer monitor. | |||||
| int | giveRank () | ||||
| Returns domain rank in a group of collaborating processes (0..groupSize-1) | |||||
| int | giveNumberOfProcesses () | ||||
| Returns the number of collaborating processes. | |||||
| void | initParallel () | ||||
| Request domain rank and problem size. | |||||
| EngngModel * | giveEngngModel () | ||||
| Returns reference to itself -> required by communicator.h. | |||||
| ProblemCommunicatorMode | giveProblemCommMode () | ||||
| Returns Communicator mode. Determines current domain-decomposition strategy used. | |||||
| virtual void | drawYourself (oofegGraphicContext &context) | ||||
| virtual void | drawElements (oofegGraphicContext &context) | ||||
| virtual void | drawNodes (oofegGraphicContext &context) | ||||
| virtual void | showSparseMtrxStructure (int type, oofegGraphicContext &context, TimeStep *atTime) | ||||
| Shows the sparse structure of required matrix, type == 1 stiffness. | |||||
Error and warning reporting methods. | |||||
These methods will print error (or warning) message using oofem default loggers. Do not use these methods directly, to avoid specify file and line parameters. More preferably, use these methods via corresponding OOFEM_CLASS_ERROR and OOFEM_CLASS_WARNING macros, that will include file and line parameters automatically. Uses variable number of arguments, so a format string followed by optional arguments is expected (according to printf conventions).
| |||||
| void | error (const char *file, int line, const char *format,...) const | ||||
| prints error message and exits | |||||
| void | warning (const char *file, int line, const char *format,...) const | ||||
| prints warning message | |||||
Protected Types | |||||
| enum | { InternalForcesExchangeTag, MassExchangeTag, LoadExchangeTag, ReactionExchangeTag, RemoteElementExchangeTag } | ||||
| Message tags. More... | |||||
Protected Member Functions | |||||
| int | packDofManagers (FloatArray *src, ProcessCommunicator &processComm, bool prescribedEquations) | ||||
| Packing function for vector values of DofManagers. | |||||
| int | unpackDofManagers (FloatArray *dest, ProcessCommunicator &processComm, bool prescribedEquations) | ||||
| Unpacking function for vector values of DofManagers . | |||||
| virtual void | packMigratingData (TimeStep *) | ||||
| Packs receiver data when rebalancing load. | |||||
| virtual void | unpackMigratingData (TimeStep *) | ||||
| Unpacks receiver data when rebalancing load. | |||||
Protected Attributes | |||||
| int | ndomains | ||||
| Number of receiver domains. | |||||
| AList< Domain > * | domainList | ||||
| List of problem domains. | |||||
| int | numberOfSteps | ||||
| Total number of time steps. | |||||
| int | numberOfEquations | ||||
| Total number of equation in current time step. | |||||
| int | numberOfPrescribedEquations | ||||
| Total number or prescribed equations in current time step. | |||||
| IntArray | domainNeqs | ||||
| Number of equations per domain. | |||||
| IntArray | domainPrescribedNeqs | ||||
| Number of prescribed equations per domain. | |||||
| bool | renumberFlag | ||||
| Renumbering flag (renumbers equations after each step, necessary if Dirichlet BCs change). | |||||
| bool | profileOpt | ||||
| Profile optimized numbering flag (using Sloan's algorithm). | |||||
| int | equationNumberingCompleted | ||||
| Equation numbering completed flag. | |||||
| int | nMetaSteps | ||||
| Number of meta steps. | |||||
| AList< MetaStep > * | metaStepList | ||||
| List of problem metasteps. | |||||
| TimeStep * | stepWhenIcApply | ||||
| Solution step when IC (initial conditions) apply. | |||||
| TimeStep * | currentStep | ||||
| Current time step. | |||||
| TimeStep * | previousStep | ||||
| Previous time step. | |||||
| int | number | ||||
| Receivers id. | |||||
| EModelDefaultEquationNumbering | defaultNumberingScheme | ||||
| EModelDefaultPrescribedEquationNumbering | defaultPrescribedNumberingScheme | ||||
| std::string | dataOutputFileName | ||||
| Path to output stream. | |||||
| std::string | coreOutputFileName | ||||
| String with core output file name. | |||||
| FILE * | outputStream | ||||
| Output stream. | |||||
| ContextOutputMode | contextOutputMode | ||||
| Domain context output mode. | |||||
| int | contextOutputStep | ||||
| ExportModuleManager * | exportModuleManager | ||||
| Export module manager. | |||||
| InitModuleManager * | initModuleManager | ||||
| Initialization module manager. | |||||
| problemMode | pMode | ||||
| Domain mode. | |||||
| problemScale | pScale | ||||
| Multiscale mode. | |||||
| time_t | startTime | ||||
| Solution start time. | |||||
| EngngModel * | master | ||||
| Master e-model; if defined receiver is in maintained (slave) mode. | |||||
| EngngModelContext * | context | ||||
| Context. | |||||
| EngngModelTimer | timer | ||||
| E-model timer. | |||||
| int | parallelFlag | ||||
| Flag indicating that the receiver runs in parallel. | |||||
| AList< XfemManager > * | xfemManagerList | ||||
| List of Xfemmanagers. | |||||
| int | nxfemman | ||||
| Number of Xfemmanagers. | |||||
| enum fMode | nonLinFormulation | ||||
| Type of non linear formulation (total or updated formulation). | |||||
| ErrorEstimator * | defaultErrEstimator | ||||
| Error estimator. Useful for adaptivity, or simply printing errors output. | |||||
| int | rank | ||||
| Domain rank in a group of collaborating processes (0..groupSize-1). | |||||
| int | numProcs | ||||
| Total number of collaborating processes. | |||||
| char | processor_name [PROCESSOR_NAME_LENGTH] | ||||
| Processor name. | |||||
| ProblemCommunicatorMode | commMode | ||||
| Communicator mode. Determines current strategy used. | |||||
| CommunicatorBuff * | commBuff | ||||
| Common Communicator buffer. | |||||
| ProblemCommunicator * | communicator | ||||
| Communicator. | |||||
| int | nonlocalExt | ||||
| Flag indicating if nonlocal extension active, which will cause data to be sent between shared elements before computing the internal forces. | |||||
| ProblemCommunicator * | nonlocCommunicator | ||||
| NonLocal Communicator. Necessary when nonlocal constitutive models are used. | |||||
| AList< PetscContext > * | petscContextList | ||||
| List where PETSc contexts are stored. | |||||
Load balancing attributes | |||||
| LoadBalancer * | lb | ||||
| Load Balancer. | |||||
| LoadBalancerMonitor * | lbm | ||||
| bool | loadBalancingFlag | ||||
| If set to true, load balancing is active. | |||||
| bool | force_load_rebalance_in_first_step | ||||
| Debug flag forcing load balancing after first step. | |||||
Abstract base class representing the "problem" under consideration.
The engineering model describes the problem and type of analysis to be done. It "knows" the type and form of governing equation, knows how to assemble this problem from local element contributions and uses suitable instance of numerical method class to solve problem. It possesses and manages one or more problem domains. Concept of time steps is introduced. For problems discretized in time the introduction of time step is natural. In other cases, time steps can represent for example load increments or different load cases.
The solution steps are grouped together into so called meta steps. The meta step can be thought as an sequence of solution steps, with same set of attributes used to drive behavior of engng model. For each metastep, the engng model typically updates its control attributes according to metastep engng attributes (see initMetaStepAttributes and updateAttributes services) and creates the solution steps accordingly. This allows to switch to different time increment, different solution control, etc. If no metastep is specified, the engng model creates default one for all required solution steps. There are two services, where attributes are updated, the first one, used for those attributes, which do not vary during solution of problem are set in initializeFrom service. The second service is updateAttributes, where the attributes allowed to change (with metastep validity) are updated. If no metastep is introduced, default one is created (with attributes set to engng model init record). Then there is no difference, whether attributes are read in initializeFrom or updateAttributes, but preferred scheme is to read all attributes in initializeFrom and left updateAttributes service empty.
The basic EngngModel tasks are following
anonymous enum [protected] |
Means to choose methods for finding a good initial guess.
This is ad-hoc methods, often problem-specific for obtaining a point from which Newton iterations work. Only nonlinear analysis needs to worry about this.
| oofem::EngngModel::EngngModel | ( | int | i, |
| EngngModel * | _master = NULL |
||
| ) |
Constructor.
Creates Engng model with number i.
Definition at line 85 of file engngm.C.
References oofem::_processor, oofem::COM_NoContext, commBuff, communicator, context, contextOutputMode, contextOutputStep, currentStep, defaultErrEstimator, domainList, equationNumberingCompleted, exportModuleManager, force_load_rebalance_in_first_step, giveContext(), initModuleManager, lb, lbm, loadBalancingFlag, oofem::macroScale, master, metaStepList, ndomains, nMetaSteps, nonLinFormulation, nonlocCommunicator, number, numberOfEquations, numberOfPrescribedEquations, numberOfSteps, nxfemman, outputStream, parallelFlag, petscContextList, pMode, previousStep, profileOpt, pScale, renumberFlag, stepWhenIcApply, oofem::UNKNOWN, and xfemManagerList.
| oofem::EngngModel::~EngngModel | ( | ) | [virtual] |
Destructor.
Definition at line 189 of file engngm.C.
References commBuff, communicator, context, currentStep, defaultErrEstimator, domainList, exportModuleManager, initModuleManager, lb, lbm, loadBalancingFlag, master, metaStepList, nonlocCommunicator, outputStream, petscContextList, previousStep, stepWhenIcApply, and xfemManagerList.
| void oofem::EngngModel::assemble | ( | SparseMtrx * | answer, |
| TimeStep * | tStep, | ||
| EquationID | eid, | ||
| CharType | type, | ||
| const UnknownNumberingScheme & | s, | ||
| Domain * | domain | ||
| ) | [virtual] |
Assembles characteristic matrix of required type into given sparse matrix.
| answer | Assembled matrix. |
| tStep | Time step, when answer is assembled. |
| eid | Determines type of equation and corresponding element code numbers. |
| s | Determines the equation numbering scheme. |
| type | Characteristic components of type type are requested from elements and assembled. |
| domain | Source domain. |
Reimplemented in oofem::NonLinearDynamic, and oofem::NonLinearStatic.
Definition at line 885 of file engngm.C.
References _error, oofem::ActiveBoundaryCondition::assemble(), oofem::SparseMtrx::assemble(), oofem::SparseMtrx::assembleBegin(), oofem::SparseMtrx::assembleEnd(), oofem::Element_remote, oofem::EngngModelTimer::EMTT_NetComputationalStepTimer, oofem::Domain::giveBc(), oofem::Domain::giveElement(), giveElementCharacteristicMatrix(), oofem::Element::giveLocationArray(), oofem::Domain::giveNumberOfBoundaryConditions(), oofem::Domain::giveNumberOfElements(), oofem::Element::giveParallelMode(), oofem::Element::giveRotationMatrix(), oofem::Element::isActivated(), oofem::Matrix::isNotEmpty(), oofem::EngngModelTimer::pauseTimer(), oofem::EngngModelTimer::resumeTimer(), oofem::FloatMatrix::rotatedWith(), and timer.
Referenced by oofem::PrescribedGradient::computeTangent(), oofem::MixedGradientPressureDirichlet::computeTangents(), oofem::MixedGradientPressureNeumann::computeTangents(), oofem::MicroMaterial::giveMacroStiffnessMatrix(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::LinearStatic::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::EigenValueDynamic::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::LinearStability::solveYourselfAt(), oofem::CBS::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), oofem::DarcyFlow::updateComponent(), and oofem::StokesFlow::updateComponent().
| void oofem::EngngModel::assemble | ( | SparseMtrx * | answer, |
| TimeStep * | tStep, | ||
| EquationID | eid, | ||
| CharType | type, | ||
| const UnknownNumberingScheme & | r_s, | ||
| const UnknownNumberingScheme & | c_s, | ||
| Domain * | domain | ||
| ) | [virtual] |
Assembles characteristic matrix of required type into given sparse matrix.
| answer | assembled matrix |
| tStep | Time step, when answer is assembled. |
| eid | Determines type of equation and corresponding element code numbers. |
| r_s | Determines the equation numbering scheme for the rows. |
| c_s | Determines the equation numbering scheme for the columns. |
| type | Characteristic components of type type are requested from elements and assembled. |
| domain | Source domain. |
Definition at line 1020 of file engngm.C.
References oofem::ActiveBoundaryCondition::assemble(), oofem::SparseMtrx::assemble(), oofem::SparseMtrx::assembleBegin(), oofem::SparseMtrx::assembleEnd(), oofem::Element_remote, oofem::EngngModelTimer::EMTT_NetComputationalStepTimer, oofem::Domain::giveBc(), oofem::Domain::giveElement(), giveElementCharacteristicMatrix(), oofem::Element::giveLocationArray(), oofem::Domain::giveNumberOfBoundaryConditions(), oofem::Domain::giveNumberOfElements(), oofem::Element::giveParallelMode(), oofem::Element::giveRotationMatrix(), oofem::Element::isActivated(), oofem::Matrix::isNotEmpty(), OOFEM_ERROR, oofem::EngngModelTimer::pauseTimer(), oofem::EngngModelTimer::resumeTimer(), oofem::FloatMatrix::rotatedWith(), and timer.
| void oofem::EngngModel::assemble | ( | SparseMtrx * | answer, |
| TimeStep * | tStep, | ||
| EquationID | r_id, | ||
| EquationID | c_id, | ||
| CharType | type, | ||
| const UnknownNumberingScheme & | s, | ||
| Domain * | domain | ||
| ) | [virtual] |
Assembles characteristic matrix of required type into given sparse matrix.
| answer | Assembled matrix. |
| tStep | Time step, when answer is assembled. |
| r_id | Determines type of equation and corresponding element code numbers for matrix rows. |
| c_id | Determines type of equation and corresponding element code numbers for matrix columns. |
| s | Determines the equation numbering scheme. |
| type | Characteristic components of type type are requested from elements and assembled. |
| domain | Source domain. |
Definition at line 950 of file engngm.C.
References _error, oofem::SparseMtrx::assemble(), oofem::SparseMtrx::assembleBegin(), oofem::SparseMtrx::assembleEnd(), oofem::FloatMatrix::beProductOf(), oofem::FloatMatrix::beTProductOf(), oofem::Element_remote, oofem::EngngModelTimer::EMTT_NetComputationalStepTimer, oofem::Domain::giveElement(), giveElementCharacteristicMatrix(), oofem::Element::giveLocationArray(), oofem::Domain::giveNumberOfElements(), oofem::Element::giveParallelMode(), oofem::Element::giveRotationMatrix(), oofem::Element::isActivated(), oofem::Matrix::isNotEmpty(), oofem::EngngModelTimer::pauseTimer(), oofem::EngngModelTimer::resumeTimer(), and timer.
| void oofem::EngngModel::assembleExtrapolatedForces | ( | FloatArray & | answer, |
| TimeStep * | tStep, | ||
| EquationID | eid, | ||
| CharType | type, | ||
| Domain * | domain | ||
| ) |
Assembles the extrapolated internal forces vector, useful for obtaining a good initial guess in nonlinear analysis with Dirichlet boundary conditions.
| answer | Assembled vector. |
| tStep | Time step, when answer is assembled. |
| eid | Determines type of equation and corresponding element code numbers. |
| type | Determines the type of matrix to use, typically the tangent matrix or possibly the elastic tangent. |
| domain | Domain to assemble from. |
Definition at line 1257 of file engngm.C.
References oofem::FloatArray::assemble(), oofem::FloatArray::beProductOf(), oofem::Element::computeVectorOf(), oofem::Element_remote, oofem::EngngModelTimer::EMTT_NetComputationalStepTimer, oofem::Element::giveCharacteristicMatrix(), oofem::Domain::giveElement(), oofem::Element::giveLocationArray(), oofem::Domain::giveNumberOfElements(), giveNumberOfEquations(), oofem::Element::giveParallelMode(), oofem::Element::isActivated(), oofem::EngngModelTimer::pauseTimer(), oofem::FloatArray::resize(), oofem::EngngModelTimer::resumeTimer(), timer, and oofem::FloatArray::zero().
Referenced by oofem::NonLinearStatic::proceedStep().
| double oofem::EngngModel::assembleVector | ( | FloatArray & | answer, |
| TimeStep * | tStep, | ||
| EquationID | eid, | ||
| CharType | type, | ||
| ValueModeType | mode, | ||
| const UnknownNumberingScheme & | s, | ||
| Domain * | domain, | ||
| FloatArray * | eNorms = NULL |
||
| ) |
Assembles characteristic vector of required type from dofManagers, element, and active boundary conditions, into given vector.
This routine is simple a convenient call to all three subroutines, since this is most likely what any engineering model will want to do. The return value is used to normalize the residual when checking for convergence in nonlinear problems. For parallel problems, the returned norm is also summed over all processes.
| answer | Assembled vector. |
| eid | Determines type of equation and corresponding element code numbers. |
| mode | Mode of unknown (total, incremental, rate of change). |
| tStep | Time step, when answer is assembled. |
| type | Characteristic components of type type are requested. |
| s | Determines the equation numbering scheme. |
| domain | Domain to assemble from. |
| eNorms | If non-NULL, squared norms of each internal force will be added to this, split up into dof IDs. |
Definition at line 1082 of file engngm.C.
References assembleVectorFromActiveBC(), assembleVectorFromDofManagers(), assembleVectorFromElements(), oofem::Domain::giveMaxDofID(), oofem::Domain::giveNumber(), givePetscContext(), oofem::FloatArray::givePointer(), oofem::FloatArray::giveSize(), isParallel(), oofem::norm(), oofem::FloatArray::resize(), and oofem::FloatArray::zero().
Referenced by oofem::NonLinearStatic::assembleIncrementalReferenceLoadVectors(), oofem::NonLinearDynamic::assembleIncrementalReferenceLoadVectors(), oofem::DIIDynamic::assembleLoadVector(), oofem::StructuralEngngModel::computeExternalLoadReactionContribution(), oofem::PrescribedGradient::computeField(), oofem::MixedGradientPressureDirichlet::computeFields(), oofem::NlDEIDynamic::computeLoadVector(), oofem::StructuralEngngModel::computeReaction(), oofem::StructuralEngngModel::giveInternalForces(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::DEIDynamic::solveYourselfAt(), oofem::LinearStatic::solveYourselfAt(), oofem::StokesFlow::solveYourselfAt(), oofem::LinearStability::solveYourselfAt(), oofem::DarcyFlow::updateComponent(), and oofem::StokesFlow::updateComponent().
| double oofem::EngngModel::assembleVectorFromActiveBC | ( | FloatArray & | answer, |
| TimeStep * | tStep, | ||
| EquationID | eid, | ||
| CharType | type, | ||
| ValueModeType | mode, | ||
| const UnknownNumberingScheme & | s, | ||
| Domain * | domain, | ||
| FloatArray * | eNorms = NULL |
||
| ) |
Assembles characteristic vector of required type from active boundary conditions.
| answer | Assembled vector. |
| tStep | Time step, when answer is assembled. |
| eid | Determines type of equation and corresponding element code numbers. |
| mode | Mode of unknown (total, incremental, rate of change). |
| type | Characteristic components of type type are requested from elements and assembled using prescribed eqn numbers. |
| s | Determines the equation numbering scheme. |
| domain | Domain to assemble from. |
Definition at line 1178 of file engngm.C.
References oofem::ActiveBoundaryCondition::assembleVector(), oofem::EngngModelTimer::EMTT_NetComputationalStepTimer, oofem::Domain::giveBc(), oofem::Domain::giveNumberOfBoundaryConditions(), oofem::norm(), oofem::EngngModelTimer::pauseTimer(), oofem::EngngModelTimer::resumeTimer(), and timer.
Referenced by assembleVector().
| double oofem::EngngModel::assembleVectorFromDofManagers | ( | FloatArray & | answer, |
| TimeStep * | tStep, | ||
| EquationID | eid, | ||
| CharType | type, | ||
| ValueModeType | mode, | ||
| const UnknownNumberingScheme & | s, | ||
| Domain * | domain, | ||
| FloatArray * | eNorms = NULL |
||
| ) |
Assembles characteristic vector of required type from dofManagers into given vector.
| answer | Assembled vector. |
| eid | Determines type of equation and corresponding element code numbers. |
| mode | Mode of unknown (total, incremental, rate of change). |
| tStep | Time step, when answer is assembled. |
| type | Characteristic components of type type are requested. |
| s | Determines the equation numbering scheme. |
| domain | Domain to assemble from. |
Definition at line 1119 of file engngm.C.
References oofem::FloatArray::assemble(), oofem::IntArray::at(), oofem::FloatArray::at(), oofem::DofManager::computeLoadVectorAt(), oofem::DofManager::computeM2LTransformation(), oofem::FloatArray::computeSquaredNorm(), oofem::DofManager_shared, oofem::EngngModelTimer::EMTT_NetComputationalStepTimer, oofem::DofManager::giveCompleteLocationArray(), oofem::DofManager::giveCompleteMasterDofIDArray(), oofem::Domain::giveDofManager(), oofem::Domain::giveNumberOfDofManagers(), oofem::DofManager::giveParallelMode(), oofem::DofManager::givePartitionsConnectivitySize(), oofem::IntArray::giveSize(), oofem::FloatArray::isNotEmpty(), oofem::norm(), oofem::EngngModelTimer::pauseTimer(), oofem::EngngModelTimer::resumeTimer(), oofem::FloatArray::rotatedWith(), timer, and oofem::FloatArray::times().
Referenced by assembleVector(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), and oofem::NonStationaryTransportProblem::solveYourselfAt().
| double oofem::EngngModel::assembleVectorFromElements | ( | FloatArray & | answer, |
| TimeStep * | tStep, | ||
| EquationID | eid, | ||
| CharType | type, | ||
| ValueModeType | mode, | ||
| const UnknownNumberingScheme & | s, | ||
| Domain * | domain, | ||
| FloatArray * | eNorms = NULL |
||
| ) |
Assembles characteristic vector of required type from elements into given vector.
| answer | Assembled vector. |
| tStep | Time step, when answer is assembled. |
| eid | Determines type of equation and corresponding element code numbers. |
| mode | Mode of unknown (total, incremental, rate of change). |
| type | Characteristic components of type type are requested from elements and assembled using prescribed eqn numbers. |
| s | Determines the equation numbering scheme. |
| domain | Domain to assemble from. |
Definition at line 1198 of file engngm.C.
References oofem::FloatArray::assemble(), oofem::IntArray::at(), oofem::FloatArray::at(), oofem::FloatArray::computeSquaredNorm(), oofem::Element_remote, oofem::EngngModelTimer::EMTT_NetComputationalStepTimer, oofem::Domain::giveElement(), giveElementCharacteristicVector(), oofem::Element::giveLocationArray(), oofem::Domain::giveNumberOfElements(), oofem::Element::giveParallelMode(), oofem::Element::giveRotationMatrix(), oofem::IntArray::giveSize(), oofem::Element::isActivated(), oofem::FloatArray::isNotEmpty(), oofem::norm(), oofem::EngngModelTimer::pauseTimer(), oofem::EngngModelTimer::resumeTimer(), oofem::FloatArray::rotatedWith(), and timer.
Referenced by assembleVector(), oofem::DarcyFlow::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::CBS::solveYourselfAt(), and oofem::SUPG::solveYourselfAt().
| void oofem::EngngModel::balanceLoad | ( | TimeStep * | tStep | ) | [virtual] |
Recovers the load balance between processors, if needed.
Uses load balancer monitor and load balancer instances to decide if rebalancing is needed (monitor) and to repartition the domain (load balancer). Method is responsible for packing all relevant data (the use of dof dictionaries is assumed to store e-model dof related staff, which can later help in renumbering after rebalancing) and to send/receive all data. Then the local update and renumbering is necessary to get consistent data structure.
Definition at line 1918 of file engngm.C.
References oofem::LoadBalancer::calculateLoadTransfer(), oofem::LoadBalancerMonitor::decide(), oofem::DofManager_local, oofem::DofManager_shared, oofem::EngngModelTimer::EMTT_LoadBalancingTimer, force_load_rebalance_in_first_step, forceEquationNumbering(), oofem::EngngModelTimer::getUtime(), oofem::Domain::giveDofManager(), giveDomain(), giveLoadBalancer(), giveLoadBalancerMonitor(), oofem::Domain::giveNumberOfDofManagers(), oofem::DofManager::giveNumberOfDofs(), giveRank(), oofem::TimeStep::isNotTheLastStep(), oofem::TimeStep::isTheFirstStep(), lb, oofem::LoadBalancerMonitor::LBD_RECOVER, lbm, oofem::LoadBalancer::migrateLoad(), oofem::OOFEM_LOG_INFO(), packMigratingData(), oofem::LoadBalancer::printStatistics(), oofem::EngngModelTimer::startTimer(), oofem::EngngModelTimer::stopTimer(), timer, and unpackMigratingData().
Referenced by oofem::StaggeredProblem::solveYourself(), solveYourself(), and oofem::AdaptiveNonLinearStatic::solveYourselfAt().
| virtual int oofem::EngngModel::checkConsistency | ( | ) | [inline, virtual] |
Allows programmer to test some receiver's internal data, before computation begins.
Reimplemented in oofem::NonLinearDynamic, oofem::SUPG, oofem::CBS, oofem::StokesFlow, oofem::DIIDynamic, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::StationaryTransportProblem, and oofem::DarcyFlow.
Definition at line 1027 of file engngm.h.
Referenced by checkProblemConsistency(), oofem::HuertaErrorEstimator::solveRefinedElementProblem(), and oofem::HuertaErrorEstimator::solveRefinedPatchProblem().
| int oofem::EngngModel::checkProblemConsistency | ( | ) | [virtual] |
Allows programmer to test problem its internal data, before computation begins.
Reimplemented in oofem::StaggeredProblem.
Definition at line 1851 of file engngm.C.
References oofem::Domain::checkConsistency(), checkConsistency(), giveDomain(), giveNumberOfDomains(), ndomains, oofem::OOFEM_LOG_DEBUG(), and VERBOSE_PRINTS.
Referenced by oofem::StaggeredProblem::checkProblemConsistency(), and oofem::MacroLSpace::computeStiffnessMatrix().
| void oofem::EngngModel::doStepOutput | ( | TimeStep * | tStep | ) | [virtual] |
Prints the ouput of the solution step (using virtual this->printOutputAtservice) to the stream detemined using this->giveOutputStream() method and calls exportModuleManager to do output.
Reimplemented in oofem::StokesFlow, and oofem::StaggeredProblem.
Definition at line 822 of file engngm.C.
References giveOutputStream(), and printOutputAt().
Referenced by oofem::RVEStokesFlowMaterialStatus::exportFilter(), oofem::RVEStokesFlow::exportFilter(), oofem::NonLinearStatic::terminate(), oofem::NonLinearDynamic::terminate(), and terminate().
| void oofem::EngngModel::drawElements | ( | oofegGraphicContext & | context | ) | [virtual] |
Reimplemented in oofem::StaggeredProblem.
Definition at line 1905 of file engngm.C.
References oofem::oofegGraphicContext::getActiveDomain(), and giveDomain().
Referenced by oofem::StaggeredProblem::drawElements().
| void oofem::EngngModel::drawNodes | ( | oofegGraphicContext & | context | ) | [virtual] |
Reimplemented in oofem::StaggeredProblem.
Definition at line 1909 of file engngm.C.
References oofem::oofegGraphicContext::getActiveDomain(), and giveDomain().
Referenced by oofem::StaggeredProblem::drawNodes().
| void oofem::EngngModel::drawYourself | ( | oofegGraphicContext & | context | ) | [virtual] |
Reimplemented in oofem::StaggeredProblem.
Definition at line 1901 of file engngm.C.
References oofem::oofegGraphicContext::getActiveDomain(), and giveDomain().
Referenced by oofem::StaggeredProblem::drawYourself().
| void oofem::EngngModel::error | ( | const char * | file, |
| int | line, | ||
| const char * | format, | ||
| ... | |||
| ) | const |
prints error message and exits
Definition at line 1680 of file engngm.C.
References __OOFEM_ERROR3, __OOFEM_ERROR4, giveClassName(), MAX_ERROR_MSG_LENGTH, and rank.
| virtual int oofem::EngngModel::estimateMaxPackSize | ( | IntArray & | commMap, |
| CommunicationBuffer & | buff, | ||
| int | packUnpackType | ||
| ) | [inline, virtual] |
Determines the space necessary for send/receive buffer.
It uses related communication map pattern to determine the maximum size needed.
| commMap | Communication map used to send/receive messages. |
| buff | Communication buffer. |
| packUnpackType | Determines the type of packed quantity, used by receiver to estimate the size of pack/unpack buffer accordingly. |
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, and oofem::LinearStatic.
| int oofem::EngngModel::exchangeRemoteElementData | ( | int | ExchangeTag | ) |
Exchanges necessary remote element data with remote partitions.
The receiver's nonlocalExt flag must be set. Uses receiver nonlocCommunicator to perform the task using packRemoteElementData and unpackRemoteElementData receiver's services.
| ExchangeTag | Exchange tag used by communicator. |
Definition at line 2046 of file engngm.C.
References _error, oofem::Communicator::finishExchange(), giveRank(), oofem::Communicator::initExchange(), isParallel(), nonlocalExt, nonlocCommunicator, oofem::Communicator::packAllData(), packRemoteElementData(), oofem::Communicator::unpackAllData(), unpackRemoteElementData(), and VERBOSEPARALLEL_PRINT.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), and oofem::StructuralEngngModel::giveInternalForces().
| int oofem::EngngModel::forceEquationNumbering | ( | int | i | ) | [virtual] |
Forces equation renumbering on given domain.
All equation numbers in all dofManagers are invalidated, and new equation numbers are generated starting from domainNeqs entry corresponding to given domain. It will update numberOfEquations variable accordingly. Should be used at startup to force equation numbering and therefore sets numberOfEquations. Must be used if model supports changes of static system to assign new valid equation numbers to dofManagers.
Reimplemented in oofem::SUPG, oofem::StokesFlow, and oofem::DarcyFlow.
Definition at line 569 of file engngm.C.
References oofem::DofManager::askNewEquationNumbers(), oofem::SloanGraph::askNewOptimalNumbering(), oofem::IntArray::at(), domainNeqs, domainPrescribedNeqs, oofem::Timer::getUtime(), oofem::Domain::giveBc(), giveCurrentStep(), oofem::Domain::giveDofManager(), giveDomain(), oofem::Domain::giveElement(), oofem::GeneralBoundaryCondition::giveInternalDofManager(), oofem::Element::giveInternalDofManager(), oofem::Domain::giveNumberOfBoundaryConditions(), oofem::Domain::giveNumberOfDofManagers(), oofem::Domain::giveNumberOfElements(), oofem::GeneralBoundaryCondition::giveNumberOfInternalDofManagers(), oofem::Element::giveNumberOfInternalDofManagers(), oofem::SloanGraph::giveOptimalProfileSize(), oofem::SloanGraph::initialize(), oofem::OOFEM_LOG_DEBUG(), oofem::OOFEM_LOG_INFO(), profileOpt, oofem::Timer::startTimer(), oofem::Timer::stopTimer(), timer, and oofem::SloanGraph::tryParameters().
Referenced by oofem::StaggeredProblem::forceEquationNumbering().
| int oofem::EngngModel::forceEquationNumbering | ( | ) | [virtual] |
Forces equation renumbering on all domains associated to engng model.
All equation numbers in all domains for all dofManagers are invalidated, and new equation numbers are generated starting from 1 on each domain. It will update numberOfEquations variable accordingly. Should be used at startup to force equation numbering and therefore sets numberOfEquations. Must be used if model supports changes of static system to assign new valid equation numbers to dofManagers.
Reimplemented in oofem::SUPG, and oofem::StaggeredProblem.
Definition at line 643 of file engngm.C.
References oofem::AList< T >::at(), oofem::IntArray::at(), domainNeqs, domainPrescribedNeqs, equationNumberingCompleted, oofem::AList< T >::giveSize(), oofem::PetscContext::init(), ndomains, numberOfEquations, numberOfPrescribedEquations, oofem::OOFEM_LOG_DEBUG(), and petscContextList.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), balanceLoad(), oofem::DarcyFlow::forceEquationNumbering(), oofem::StokesFlow::forceEquationNumbering(), oofem::CBS::giveNumberOfDomainEquations(), giveNumberOfDomainEquations(), oofem::CBS::giveNumberOfEquations(), giveNumberOfEquations(), oofem::CBS::giveNumberOfPrescribedDomainEquations(), giveNumberOfPrescribedDomainEquations(), oofem::CBS::giveNumberOfPrescribedEquations(), giveNumberOfPrescribedEquations(), and solveYourself().
| virtual classType oofem::EngngModel::giveClassID | ( | ) | const [inline, virtual] |
Returns classType id of receiver.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::StaggeredProblem, oofem::CBS, oofem::StokesFlow, oofem::AdaptiveNonLinearStatic, oofem::LinearStability, oofem::StructuralEngngModel, oofem::EigenValueDynamic, oofem::IncrementalLinearStatic, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::DIIDynamic, oofem::DEIDynamic, oofem::StationaryTransportProblem, oofem::DarcyFlow, oofem::AdaptiveLinearStatic, oofem::NLTransientTransportProblem, and oofem::StokesFlowVelocityHomogenization.
Definition at line 1066 of file engngm.h.
References oofem::EngngModelClass.
| virtual const char* oofem::EngngModel::giveClassName | ( | ) | const [inline, virtual] |
Returns class name of the receiver.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::StaggeredProblem, oofem::CBS, oofem::StokesFlow, oofem::AdaptiveNonLinearStatic, oofem::LinearStability, oofem::StructuralEngngModel, oofem::EigenValueDynamic, oofem::IncrementalLinearStatic, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::DIIDynamic, oofem::DEIDynamic, oofem::StationaryTransportProblem, oofem::DarcyFlow, oofem::AdaptiveLinearStatic, oofem::NLTransientTransportProblem, and oofem::StokesFlowVelocityHomogenization.
Definition at line 1064 of file engngm.h.
Referenced by error(), printYourself(), and warning().
| EngngModelContext* oofem::EngngModel::giveContext | ( | ) | [inline] |
Context requesting service.
Definition at line 1089 of file engngm.h.
References context.
Referenced by oofem::B3Material::computeShrinkageStrainVector(), oofem::B3SolidMaterial::computeShrinkageStrainVector(), oofem::StructuralMaterial::computeStressIndependentStrainVector(), oofem::LEPlic::doLagrangianPhase(), EngngModel(), oofem::B3SolidMaterial::giveHumidity(), oofem::MPSMaterial::giveHumidity(), oofem::B3SolidMaterial::giveHumidityIncrement(), oofem::StructuralMaterial::giveIPValue(), oofem::MPSMaterial::giveTemperature(), oofem::HellmichMaterial::initAuxStatus(), oofem::StationaryTransportProblem::initializeFrom(), and oofem::SUPG::initializeFrom().
| int oofem::EngngModel::giveContextFile | ( | FILE ** | contextFile, |
| int | stepNumber, | ||
| int | stepVersion, | ||
| ContextFileMode | cmode, | ||
| int | errLevel = 1 |
||
| ) |
Assigns context file-descriptor for given step number to stream.
Returns nonzero on success.
| contextFile | Assigned file descriptor. |
| stepNumber | Solution step number to store/restore. |
| stepVersion | Version of step. |
| cmode | Determines the i/o mode of context file. |
| errLevel | Determines the amount of warning messages if errors are encountered, level 0 no warnings reported. |
Definition at line 1608 of file engngm.C.
References _error2, oofem::contextMode_read, and coreOutputFileName.
Referenced by oofem::StationaryTransportProblem::restoreContext(), oofem::IncrementalLinearStatic::restoreContext(), oofem::LinearStatic::restoreContext(), oofem::NonStationaryTransportProblem::restoreContext(), oofem::EigenValueDynamic::restoreContext(), oofem::LinearStability::restoreContext(), oofem::DIIDynamic::restoreContext(), oofem::CBS::restoreContext(), oofem::AdaptiveNonLinearStatic::restoreContext(), oofem::SUPG::restoreContext(), oofem::NonLinearStatic::restoreContext(), oofem::NonLinearDynamic::restoreContext(), oofem::NlDEIDynamic::restoreContext(), restoreContext(), oofem::StationaryTransportProblem::saveContext(), oofem::IncrementalLinearStatic::saveContext(), oofem::LinearStatic::saveContext(), oofem::NonStationaryTransportProblem::saveContext(), oofem::EigenValueDynamic::saveContext(), oofem::LinearStability::saveContext(), oofem::DIIDynamic::saveContext(), oofem::CBS::saveContext(), oofem::AdaptiveNonLinearStatic::saveContext(), oofem::SUPG::saveContext(), oofem::NonLinearStatic::saveContext(), oofem::NonLinearDynamic::saveContext(), oofem::NlDEIDynamic::saveContext(), and saveContext().
Returns domain context output mode.
Definition at line 381 of file engngm.h.
References contextOutputMode.
Referenced by saveStepContext().
| int oofem::EngngModel::giveContextOutputStep | ( | ) | [inline] |
Returns domain context output step.
Definition at line 385 of file engngm.h.
References contextOutputStep.
Referenced by saveStepContext().
Returns current meta step.
Definition at line 1601 of file engngm.C.
References giveCurrentStep(), and giveMetaStep().
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::MacroLSpace::computeStiffnessMatrix(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), oofem::NonLinearDynamic::proceedStep(), restoreContext(), oofem::MicroMaterial::setMacroProperties(), oofem::LinearStability::solveYourself(), oofem::DarcyFlow::solveYourselfAt(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::StokesFlow::solveYourselfAt(), oofem::CBS::solveYourselfAt(), oofem::StationaryTransportProblem::updateDomainLinks(), oofem::LinearStatic::updateDomainLinks(), oofem::NonStationaryTransportProblem::updateDomainLinks(), oofem::CBS::updateDomainLinks(), oofem::SUPG::updateDomainLinks(), oofem::NonLinearStatic::updateDomainLinks(), and oofem::NonLinearDynamic::updateDomainLinks().
| TimeStep* oofem::EngngModel::giveCurrentStep | ( | ) | [inline] |
Returns current time step.
Definition at line 703 of file engngm.h.
References currentStep, giveCurrentStep(), and master.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::LIBeam3d2::computeBmatrixAt(), oofem::NonLinearStatic::computeExternalLoadReactionContribution(), oofem::NonLinearDynamic::computeExternalLoadReactionContribution(), oofem::LIBeam3d2::computeGtoLRotationMatrix(), oofem::Beam3d::computeKappaCoeffs(), oofem::MacroLSpace::computeStiffnessMatrix(), oofem::InterfaceElem2dQuad::drawDeformedGeometry(), oofem::InterfaceElem1d::drawDeformedGeometry(), oofem::LumpedMassElement::drawDeformedGeometry(), oofem::QTrPlaneStrain::drawDeformedGeometry(), oofem::QTrPlaneStress2d::drawDeformedGeometry(), oofem::LIBeam2dNL::drawDeformedGeometry(), oofem::CohesiveSurface3d::drawDeformedGeometry(), oofem::Axisymm3d::drawDeformedGeometry(), oofem::Truss2d::drawDeformedGeometry(), oofem::QPlaneStrain::drawDeformedGeometry(), oofem::Q4Axisymm::drawDeformedGeometry(), oofem::LIBeam3d::drawDeformedGeometry(), oofem::QPlaneStress2d::drawDeformedGeometry(), oofem::TrPlaneStress2d::drawDeformedGeometry(), oofem::LIBeam3dNL2::drawDeformedGeometry(), oofem::LIBeam3dNL::drawDeformedGeometry(), oofem::Truss1d::drawDeformedGeometry(), oofem::TR_SHELL01::drawDeformedGeometry(), oofem::Beam2d::drawDeformedGeometry(), oofem::L4Axisymm::drawDeformedGeometry(), oofem::Lattice2d::drawDeformedGeometry(), oofem::Truss3d::drawDeformedGeometry(), oofem::LTRSpace::drawDeformedGeometry(), oofem::Beam3d::drawDeformedGeometry(), oofem::LIBeam3d2::drawDeformedGeometry(), oofem::PlaneStress2d::drawDeformedGeometry(), oofem::Quad1PlaneStrain::drawDeformedGeometry(), oofem::LSpace::drawDeformedGeometry(), oofem::TrPlaneStrain::drawDeformedGeometry(), oofem::CCTPlate::drawDeformedGeometry(), oofem::drawIGAPatchDeformedGeometry(), oofem::TR_SHELL01::drawRawGeometry(), oofem::CCTPlate::drawRawGeometry(), oofem::InterfaceElem2dQuad::drawScalar(), oofem::PlaneStress2dXfem::drawScalar(), oofem::InterfaceElem1d::drawScalar(), oofem::Quad1_ht::drawScalar(), oofem::QTrPlaneStrain::drawScalar(), oofem::QTrPlaneStress2d::drawScalar(), oofem::BsplinePlaneStressElement::drawScalar(), oofem::CohesiveSurface3d::drawScalar(), oofem::Axisymm3d::drawScalar(), oofem::QPlaneStrain::drawScalar(), oofem::Tetrah1_ht::drawScalar(), oofem::QPlaneStress2d::drawScalar(), oofem::TrPlaneStress2d::drawScalar(), oofem::Truss1d::drawScalar(), oofem::Brick1_ht::drawScalar(), oofem::TR_SHELL01::drawScalar(), oofem::L4Axisymm::drawScalar(), oofem::LTRSpace::drawScalar(), oofem::TR1_2D_SUPG2_AXI::drawScalar(), oofem::LIBeam3d2::drawScalar(), oofem::PlaneStress2d::drawScalar(), oofem::Quad1PlaneStrain::drawScalar(), oofem::NURBSPlaneStressElement::drawScalar(), oofem::TR21_2D_SUPG::drawScalar(), oofem::Quad10_2D_SUPG::drawScalar(), oofem::LSpace::drawScalar(), oofem::TrPlaneStrain::drawScalar(), oofem::TR1_2D_CBS::drawScalar(), oofem::CCTPlate::drawScalar(), oofem::TSplinePlaneStressElement::drawScalar(), oofem::TR1_2D_SUPG2::drawScalar(), oofem::TR1_2D_SUPG::drawScalar(), oofem::NURBSSpace3dElement::drawScalar(), oofem::TrPlaneStress2d::drawSpecial(), oofem::Lattice2d::drawSpecial(), oofem::LTRSpace::drawSpecial(), oofem::PlaneStress2d::drawSpecial(), oofem::Quad1PlaneStrain::drawSpecial(), oofem::LSpace::drawSpecial(), oofem::Node::drawYourself(), oofem::HuertaErrorEstimator::estimateError(), oofem::DarcyFlow::forceEquationNumbering(), oofem::StaggeredProblem::forceEquationNumbering(), oofem::SUPG::forceEquationNumbering(), forceEquationNumbering(), giveCurrentMetaStep(), giveCurrentStep(), oofem::MacroLSpace::giveInternalForcesVector(), oofem::RerShell::giveIPValue(), oofem::Beam2d::giveKappaCoeff(), giveSolutionStepWhenIcApply(), oofem::NLTransientTransportProblem::giveUnknownComponent(), oofem::DEIDynamic::giveUnknownComponent(), oofem::LinearStatic::giveUnknownComponent(), oofem::DIIDynamic::giveUnknownComponent(), oofem::AdaptiveNonLinearStatic::giveUnknownComponent(), oofem::NonLinearStatic::giveUnknownComponent(), oofem::NonLinearDynamic::giveUnknownComponent(), oofem::NlDEIDynamic::giveUnknownComponent(), oofem::NLTransientTransportProblem::giveUnknownDictHashIndx(), oofem::SUPG::giveUnknownDictHashIndx(), oofem::HellmichMaterial::initGpForNewStep(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), oofem::NodalAveragingRecoveryModel::initRegionMap(), oofem::ZZNodalRecoveryModel::initRegionMap(), oofem::SPRNodalRecoveryModel::initRegionMap(), oofem::VTKXMLExportModule::initRegionNodeNumbering(), oofem::TimeStep::isTheCurrentTimeStep(), packRemoteElementData(), oofem::EigenValueDynamic::restoreContext(), oofem::LinearStability::restoreContext(), oofem::HellmichMaterial::restoreIPContext(), oofem::StationaryTransportProblem::saveContext(), oofem::IncrementalLinearStatic::saveContext(), oofem::LinearStatic::saveContext(), oofem::NonStationaryTransportProblem::saveContext(), oofem::EigenValueDynamic::saveContext(), oofem::LinearStability::saveContext(), oofem::DIIDynamic::saveContext(), oofem::CBS::saveContext(), oofem::AdaptiveNonLinearStatic::saveContext(), oofem::SUPG::saveContext(), oofem::NonLinearStatic::saveContext(), oofem::HuertaErrorEstimator::saveContext(), oofem::NonLinearDynamic::saveContext(), oofem::NlDEIDynamic::saveContext(), saveContext(), oofem::HellmichMaterial::saveIPContext(), oofem::FE2FluidMaterialStatus::setTimeStep(), oofem::HuertaErrorEstimator::setupRefinedProblemEpilog2(), oofem::HuertaErrorEstimator::setupRefinedProblemProlog(), oofem::HuertaErrorEstimator::solveRefinedElementProblem(), oofem::HuertaErrorEstimator::solveRefinedPatchProblem(), oofem::LinearStability::solveYourself(), oofem::StaggeredProblem::solveYourself(), solveYourself(), oofem::AdaptiveNonLinearStatic::solveYourselfAt(), oofem::LinearStability::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), unpackRemoteElementData(), oofem::Concrete2::updateStirrups(), and oofem::MacroLSpace::updateYourself().
| Domain * oofem::EngngModel::giveDomain | ( | int | n | ) |
Service for accessing particular problem domain.
Generates error if no such domain is defined.
| n | Pointer to n-th domain is returned. |
Definition at line 1716 of file engngm.C.
References _error, oofem::AList< T >::at(), domainList, and ndomains.
Referenced by oofem::PrimaryField::__evaluateAt(), oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::NRSolver::applyConstraintsToLoadIncrement(), oofem::NLTransientTransportProblem::applyIC(), oofem::NonStationaryTransportProblem::applyIC(), oofem::CBS::applyIC(), oofem::SUPG::applyIC(), oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::NonStationaryTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::AdaptiveNonLinearStatic::assembleInitialLoadVector(), balanceLoad(), oofem::SkylineUnsym::buildInternalStructure(), oofem::DynCompRow::buildInternalStructure(), oofem::PetscSparseMtrx::buildInternalStructure(), oofem::DynCompCol::buildInternalStructure(), oofem::Skyline::buildInternalStructure(), oofem::DSSMatrix::buildInternalStructure(), oofem::SymCompCol::buildInternalStructure(), oofem::CompCol::buildInternalStructure(), oofem::StructuralEngngModel::buildReactionTable(), oofem::StationaryTransportProblem::checkConsistency(), oofem::LinearStatic::checkConsistency(), oofem::NonStationaryTransportProblem::checkConsistency(), oofem::DIIDynamic::checkConsistency(), oofem::StokesFlow::checkConsistency(), oofem::CBS::checkConsistency(), oofem::SUPG::checkConsistency(), oofem::NonLinearDynamic::checkConsistency(), checkProblemConsistency(), oofem::MatlabExportModule::computeArea(), oofem::StructuralEngngModel::computeExternalLoadReactionContribution(), oofem::XfemManager::computeFictPosition(), oofem::NlDEIDynamic::computeLoadVector(), oofem::NlDEIDynamic::computeMassMtrx(), oofem::XfemManager::computeNodeEnrichmentType(), oofem::StructuralEngngModel::computeReaction(), oofem::FE2FluidMaterialStatus::computeSize(), oofem::MacroLSpace::computeStiffnessMatrix(), oofem::StokesFlowVelocityHomogenization::computeTangent(), oofem::NLTransientTransportProblem::copyUnknownsInDictionary(), oofem::NLTransientTransportProblem::createPreviousSolutionInDofUnknownsDictionary(), oofem::FE2FluidMaterialStatus::createRVE(), oofem::ProblemCommunicator::DofManCmp(), oofem::GPInitModule::doInit(), oofem::DofManExportModule::doOutput(), oofem::GPExportModule::doOutput(), oofem::HOMExportModule::doOutput(), oofem::VTKExportModule::doOutput(), oofem::VTKXMLExportModule::doOutput(), oofem::MatlabExportModule::doOutputData(), oofem::MatlabExportModule::doOutputMesh(), oofem::MatlabExportModule::doOutputSpecials(), oofem::StokesFlow::doStepOutput(), drawElements(), drawNodes(), drawYourself(), oofem::ProblemCommunicator::ElemCmp(), oofem::LinearStatic::estimateMaxPackSize(), oofem::NonLinearStatic::estimateMaxPackSize(), oofem::NonLinearDynamic::estimateMaxPackSize(), oofem::NlDEIDynamic::estimateMaxPackSize(), oofem::SUPG::evaluateElementStabilizationCoeffs(), oofem::VTKXMLExportModule::exportCellVarAs(), oofem::VTKExportModule::exportCellVars(), oofem::POIExportModule::exportIntVarAs(), oofem::VTKExportModule::exportIntVarAs(), oofem::VTKXMLExportModule::exportIntVarAs(), oofem::POIExportModule::exportIntVars(), oofem::POIExportModule::exportPrimaryVars(), oofem::POIExportModule::exportPrimVarAs(), oofem::VTKExportModule::exportPrimVarAs(), oofem::VTKXMLExportModule::exportPrimVarAs(), oofem::DarcyFlow::forceEquationNumbering(), oofem::SUPG::forceEquationNumbering(), forceEquationNumbering(), oofem::StokesFlowVelocityHomogenization::getMeans(), oofem::StokesFlowVelocityHomogenization::giveAreaOfDomain(), oofem::StokesFlowVelocityHomogenization::giveAreaOfRVE(), oofem::XfemManager::giveDomain(), oofem::NonStationaryTransportProblem::giveDtTimeFunction(), oofem::StaggeredProblem::giveDtTimeFunction(), oofem::StructuralEngngModel::giveInternalForces(), oofem::AdaptiveNonLinearStatic::giveLoadBalancer(), oofem::NonLinearStatic::giveLoadBalancer(), oofem::NonLinearDynamic::giveLoadBalancer(), oofem::MicroMaterial::giveMacroStiffnessMatrix(), oofem::CBS::giveNextStep(), oofem::SUPG::giveNextStep(), oofem::StationaryTransportProblem::giveNumericalMethod(), oofem::DarcyFlow::giveNumericalMethod(), oofem::LinearStatic::giveNumericalMethod(), oofem::DIIDynamic::giveNumericalMethod(), oofem::NonStationaryTransportProblem::giveNumericalMethod(), oofem::EigenValueDynamic::giveNumericalMethod(), oofem::IncrementalLinearStatic::giveNumericalMethod(), oofem::LinearStability::giveNumericalMethod(), oofem::CBS::giveNumericalMethod(), oofem::StokesFlow::giveNumericalMethod(), oofem::SUPG::giveNumericalMethod(), oofem::NonLinearStatic::giveNumericalMethod(), oofem::NonLinearDynamic::giveNumericalMethod(), oofem::NlDEIDynamic::giveNumericalMethod(), oofem::LinearStability::giveNumericalMethodForLinStaticProblem(), oofem::VTKXMLExportModule::givePrimVarSmoother(), oofem::VTKExportModule::giveSmoother(), oofem::VTKXMLExportModule::giveSmoother(), oofem::StokesFlowVelocityHomogenization::handlePrescribedValues(), oofem::PetscNatural2GlobalOrdering::init(), oofem::PetscNatural2LocalOrdering::init(), oofem::oofegGraphicContext::init(), oofem::DofDistributedPrimaryField::initialize(), oofem::HOMExportModule::initialize(), oofem::AdaptiveNonLinearStatic::initializeAdaptive(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), oofem::SUPG::initializeFrom(), initializeFrom(), initStepIncrements(), oofem::XfemManager::instanciateYourself(), packDofManagers(), oofem::NonLinearStatic::packMigratingData(), oofem::NonLinearDynamic::packMigratingData(), packRemoteElementData(), oofem::NonLinearStatic::printOutputAt(), oofem::NonLinearDynamic::printOutputAt(), oofem::NlDEIDynamic::printOutputAt(), printOutputAt(), oofem::StructuralEngngModel::printReactionForces(), oofem::NonLinearStatic::proceedStep(), oofem::NonLinearDynamic::proceedStep(), oofem::XfemManager::restoreContext(), restoreContext(), oofem::StokesFlowVelocityHomogenization::rveGiveCharacteristicData(), saveContext(), oofem::oofegGraphicContext::setActiveProblem(), oofem::MicroMaterial::setMacroProperties(), oofem::FETICommunicator::setUpCommunicationMaps(), oofem::ProblemCommunicator::setUpCommunicationMapsForElementCut(), oofem::ProblemCommunicator::setUpCommunicationMapsForNodeCut(), oofem::ProblemCommunicator::setUpCommunicationMapsForRemoteElementMode(), oofem::StructuralEngngModel::showSparseMtrxStructure(), oofem::NonLinearStatic::showSparseMtrxStructure(), oofem::NonLinearDynamic::showSparseMtrxStructure(), oofem::HuertaErrorEstimator::solveRefinedElementProblem(), oofem::HuertaErrorEstimator::solveRefinedPatchProblem(), oofem::DarcyFlow::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::DEIDynamic::solveYourselfAt(), oofem::LinearStatic::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::EigenValueDynamic::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::AdaptiveNonLinearStatic::solveYourselfAt(), oofem::StokesFlow::solveYourselfAt(), oofem::LinearStability::solveYourselfAt(), oofem::CBS::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), oofem::NlDEIDynamic::solveYourselfAt(), oofem::EigenValueDynamic::terminate(), oofem::LinearStability::terminate(), oofem::LinearStability::terminateLinStatic(), unpackDofManagers(), oofem::NonLinearStatic::unpackMigratingData(), oofem::NonLinearDynamic::unpackMigratingData(), unpackRemoteElementData(), oofem::DofDistributedPrimaryField::update(), oofem::DarcyFlow::updateComponent(), oofem::StokesFlow::updateComponent(), oofem::NonLinearDynamic::updateComponent(), oofem::SUPG::updateDofUnknownsDictionary_corrector(), oofem::SUPG::updateDofUnknownsDictionary_predictor(), oofem::AdaptiveLinearStatic::updateDomainLinks(), oofem::StationaryTransportProblem::updateDomainLinks(), oofem::LinearStatic::updateDomainLinks(), oofem::NonStationaryTransportProblem::updateDomainLinks(), oofem::CBS::updateDomainLinks(), oofem::AdaptiveNonLinearStatic::updateDomainLinks(), oofem::SUPG::updateDomainLinks(), oofem::NonLinearStatic::updateDomainLinks(), oofem::NonLinearDynamic::updateDomainLinks(), oofem::SUPG::updateElementsForNewInterfacePosition(), oofem::NLTransientTransportProblem::updateInternalState(), oofem::StructuralEngngModel::updateInternalState(), oofem::StationaryTransportProblem::updateInternalState(), oofem::StokesFlow::updateInternalState(), oofem::CBS::updateInternalState(), oofem::NonStationaryTransportProblem::updateInternalState(), oofem::SUPG::updateInternalState(), oofem::SUPG::updateSolutionVectors(), oofem::SUPG::updateSolutionVectors_predictor(), oofem::AdaptiveLinearStatic::updateYourself(), oofem::NonStationaryTransportProblem::updateYourself(), oofem::FE2FluidMaterialStatus::updateYourself(), and updateYourself().
| DataReader * oofem::EngngModel::GiveDomainDataReader | ( | int | domainNum, |
| int | domainSerNum, | ||
| ContextFileMode | cmode | ||
| ) |
Creates new DataReader for given domain.
Returns nonzero on success.
| domainNum | Domain number. |
| domainSerNum | Domain serial number. |
| cmode | Determines the i/o mode of context file. |
Definition at line 1658 of file engngm.C.
References _error, and coreOutputFileName.
Referenced by oofem::AdaptiveNonLinearStatic::initializeAdaptive(), and oofem::Domain::restoreContext().
| virtual ErrorEstimator* oofem::EngngModel::giveDomainErrorEstimator | ( | int | n | ) | [inline, virtual] |
Service for accessing ErrorEstimator corresponding to particular domain.
Definition at line 353 of file engngm.h.
References defaultErrEstimator.
Referenced by oofem::Domain::giveErrorEstimator(), oofem::NonLinearStatic::unpackMigratingData(), and oofem::NonLinearDynamic::unpackMigratingData().
| void oofem::EngngModel::giveElementCharacteristicMatrix | ( | FloatMatrix & | answer, |
| int | num, | ||
| CharType | type, | ||
| TimeStep * | tStep, | ||
| Domain * | domain | ||
| ) | [virtual] |
Returns characteristic matrix of element.
The Element::giveCharacteristicMatrix function should not be called directly, because EngngModel may require some special modification of characteristic matrices supported on element level. But default implementation does the direct call to element level.
| answer | Characteristic matrix. |
| num | Element number. |
| type | Type of matrix requested. |
| tStep | Time step when response is computed. |
| domain | Source domain. |
Reimplemented in oofem::SUPG, oofem::NonLinearDynamic, oofem::NonStationaryTransportProblem, and oofem::DIIDynamic.
Definition at line 1307 of file engngm.C.
References oofem::Element::giveCharacteristicMatrix(), and oofem::Domain::giveElement().
Referenced by assemble(), oofem::StationaryTransportProblem::assembleDirichletBcRhsVector(), and oofem::HuertaErrorEstimator::solveRefinedElementProblem().
| void oofem::EngngModel::giveElementCharacteristicVector | ( | FloatArray & | answer, |
| int | num, | ||
| CharType | type, | ||
| ValueModeType | mode, | ||
| TimeStep * | tStep, | ||
| Domain * | domain | ||
| ) | [virtual] |
Returns characteristic vector of element.
The Element::giveCharacteristicVector function should not be called directly, because EngngModel may require some special modification of characteristic vectors supported on element level. But default implementation does the direct call to element level.
| answer | Characteristic vector. |
| num | Element number. |
| type | Type of vector requested. |
| mode | Mode of unknown (total, incremental, rate of change). |
| tStep | Time step when response is computed. |
| domain | Source domain. |
Reimplemented in oofem::SUPG.
Definition at line 1314 of file engngm.C.
References oofem::Element::giveCharacteristicVector(), and oofem::Domain::giveElement().
Referenced by assembleVectorFromElements().
| virtual double oofem::EngngModel::giveEndOfTimeOfInterest | ( | ) | [inline, virtual] |
Returns end of time interest (time corresponding to end of time integration).
Reimplemented in oofem::IncrementalLinearStatic.
Definition at line 719 of file engngm.h.
Referenced by oofem::RheoChainMaterial::giveEndOfTimeOfInterest().
| EngngModel* oofem::EngngModel::giveEngngModel | ( | ) | [inline] |
Returns reference to itself -> required by communicator.h.
| virtual bool oofem::EngngModel::giveEquationScalingFlag | ( | ) | [inline, virtual] |
Returns the Equation scaling flag, which is used to indicate that governing equation(s) are scaled, or non-dimensionalized.
Reimplemented in oofem::SUPG, and oofem::CBS.
Definition at line 1096 of file engngm.h.
Referenced by oofem::NewtonianFluidMaterial::checkConsistency(), oofem::NonlinearFluidMaterial::checkConsistency(), oofem::BinghamFluidMaterial2::checkConsistency(), and oofem::Node::initializeFrom().
Returns receiver's export module manager.
Definition at line 726 of file engngm.h.
References exportModuleManager.
Referenced by oofem::StaggeredProblem::doStepOutput(), oofem::StokesFlow::solveYourselfAt(), and updateDomainLinks().
| virtual fMode oofem::EngngModel::giveFormulation | ( | ) | [inline, virtual] |
Indicates type of non linear computation (total or updated formulation).
This is used for example on Nodal level to update coordinates if updated formulation is done, or on element level, when non linear contributions are computed.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::StaggeredProblem, oofem::CBS, oofem::LinearStability, oofem::IncrementalLinearStatic, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::DIIDynamic, oofem::DEIDynamic, oofem::StationaryTransportProblem, oofem::NLTransientTransportProblem, and oofem::DarcyFlow.
Definition at line 1080 of file engngm.h.
References nonLinFormulation.
Referenced by oofem::Q4Axisymm::computeStrainVector(), oofem::L4Axisymm::computeStrainVector(), oofem::Axisymm3d::computeStrainVector(), oofem::NLStructuralElement::computeStrainVector(), and oofem::Node::updateYourself().
| virtual LoadBalancer* oofem::EngngModel::giveLoadBalancer | ( | ) | [inline, virtual] |
Returns reference to receiver's load balancer.
Reimplemented in oofem::NonLinearDynamic, oofem::NonLinearStatic, and oofem::AdaptiveNonLinearStatic.
Definition at line 1121 of file engngm.h.
Referenced by balanceLoad(), oofem::WallClockLoadBalancerMonitor::decide(), and updateAttributes().
| virtual LoadBalancerMonitor* oofem::EngngModel::giveLoadBalancerMonitor | ( | ) | [inline, virtual] |
Returns reference to receiver's load balancer monitor.
Reimplemented in oofem::NonLinearDynamic, oofem::NonLinearStatic, and oofem::AdaptiveNonLinearStatic.
Definition at line 1123 of file engngm.h.
Referenced by balanceLoad(), oofem::ParmetisLoadBalancer::calculateLoadTransfer(), and updateAttributes().
| virtual MaterialInterface* oofem::EngngModel::giveMaterialInterface | ( | int | n | ) | [inline, virtual] |
Returns material interface representation for given domain.
Reimplemented in oofem::SUPG.
Definition at line 355 of file engngm.h.
Referenced by oofem::VTKExportModule::exportIntVarAs(), oofem::VTKXMLExportModule::exportIntVarAs(), oofem::Quad10_2D_SUPG::giveIPValue(), oofem::TR1_2D_SUPG::giveIPValue(), and oofem::TwoFluidMaterial::giveTempVOF().
| MetaStep * oofem::EngngModel::giveMetaStep | ( | int | i | ) |
Returns the i-th meta step.
Definition at line 1781 of file engngm.C.
References _error2, oofem::AList< T >::at(), and nMetaSteps.
Referenced by oofem::AdaptiveNonLinearStatic::assembleInitialLoadVector(), giveCurrentMetaStep(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), oofem::NonLinearStatic::proceedStep(), restoreContext(), saveContext(), oofem::MicroMaterial::setMacroProperties(), oofem::HuertaErrorEstimator::setupRefinedProblemProlog(), oofem::StaggeredProblem::solveYourself(), solveYourself(), oofem::LinearStatic::solveYourselfAt(), oofem::EigenValueDynamic::solveYourselfAt(), oofem::LinearStability::solveYourselfAt(), oofem::NonLinearStatic::updateAttributes(), oofem::NonLinearStatic::updateComponent(), and oofem::NonLinearStatic::updateLoadVectors().
| virtual int oofem::EngngModel::giveNewEquationNumber | ( | int | domain, |
| DofIDItem | |||
| ) | [inline, virtual] |
Increases number of equations of receiver's domain and returns newly created equation number.
Used mainly by DofManagers to allocate their corresponding equation number if it is not currently allocated. The DofIDItem parameter allows to distinguish between several possible governing equations, that can be numbered separately.
Reimplemented in oofem::SUPG, and oofem::CBS.
Definition at line 737 of file engngm.h.
References oofem::IntArray::at(), and domainNeqs.
Referenced by oofem::ActiveDof::askNewEquationNumber(), and oofem::MasterDof::askNewEquationNumber().
| virtual int oofem::EngngModel::giveNewPrescribedEquationNumber | ( | int | domain, |
| DofIDItem | |||
| ) | [inline, virtual] |
Increases number of prescribed equations of receiver's domain and returns newly created equation number.
Used mainly by DofManagers to allocate their corresponding equation number if it is not currently allocated. The DofIDItem parameter allows to distinguish between several possible governing equations, that can be numbered separately.
Reimplemented in oofem::SUPG, and oofem::CBS.
Definition at line 745 of file engngm.h.
References oofem::IntArray::at(), and domainPrescribedNeqs.
Referenced by oofem::ActiveDof::askNewEquationNumber(), and oofem::MasterDof::askNewEquationNumber().
| virtual TimeStep* oofem::EngngModel::giveNextStep | ( | ) | [inline, virtual] |
Returns next time step (next to current step) of receiver.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::StokesFlow, oofem::StaggeredProblem, oofem::CBS, oofem::LinearStability, oofem::EigenValueDynamic, oofem::NonStationaryTransportProblem, oofem::DIIDynamic, oofem::LinearStatic, oofem::DEIDynamic, oofem::IncrementalLinearStatic, oofem::DarcyFlow, and oofem::StationaryTransportProblem.
Definition at line 707 of file engngm.h.
Referenced by oofem::MicroMaterial::setMacroProperties(), oofem::StaggeredProblem::solveYourself(), solveYourself(), and oofem::MacroLSpace::updateYourself().
| int oofem::EngngModel::giveNumberOfDomainEquations | ( | int | di, |
| EquationID | eid | ||
| ) | [virtual] |
Returns number of equations for given domain in active (current time step) time step.
The EquationID parameter allows to distinguish between several possible governing equations, that can be numbered separately.
Reimplemented in oofem::SUPG, and oofem::CBS.
Definition at line 535 of file engngm.C.
References oofem::IntArray::at(), domainNeqs, equationNumberingCompleted, and forceEquationNumbering().
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::SpoolesSparseMtrx::buildInternalStructure(), oofem::SkylineUnsym::buildInternalStructure(), oofem::DynCompRow::buildInternalStructure(), oofem::DynCompCol::buildInternalStructure(), oofem::Skyline::buildInternalStructure(), oofem::DSSMatrix::buildInternalStructure(), oofem::SymCompCol::buildInternalStructure(), oofem::CompCol::buildInternalStructure(), oofem::StructuralEngngModel::giveInternalForces(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), oofem::EIPrimaryUnknownMapper::mapAndUpdate(), and oofem::HuertaErrorEstimator::solveRefinedElementProblem().
| int oofem::EngngModel::giveNumberOfDomains | ( | ) | [inline] |
Returns number of domains in problem.
Definition at line 351 of file engngm.h.
References ndomains.
Referenced by checkProblemConsistency(), oofem::NLTransientTransportProblem::createPreviousSolutionInDofUnknownsDictionary(), oofem::MicroMaterial::init(), oofem::oofegGraphicContext::init(), oofem::oofegGraphicContext::setActiveProblem(), oofem::NLTransientTransportProblem::updateInternalState(), oofem::StructuralEngngModel::updateInternalState(), oofem::StationaryTransportProblem::updateInternalState(), oofem::StokesFlow::updateInternalState(), oofem::CBS::updateInternalState(), oofem::NonStationaryTransportProblem::updateInternalState(), oofem::SUPG::updateInternalState(), and updateYourself().
| int oofem::EngngModel::giveNumberOfEquations | ( | EquationID | eid | ) | [virtual] |
Returns total number of equations in active (current time step) time step.
The UnknownType parameter allows to distinguish between several possible governing equations, that can be numbered separately.
Reimplemented in oofem::SUPG, and oofem::CBS.
Definition at line 503 of file engngm.C.
References equationNumberingCompleted, forceEquationNumbering(), and numberOfEquations.
Referenced by oofem::NonStationaryTransportProblem::applyIC(), assembleExtrapolatedForces(), oofem::NonLinearStatic::assembleIncrementalReferenceLoadVectors(), oofem::NonLinearDynamic::assembleIncrementalReferenceLoadVectors(), oofem::AdaptiveNonLinearStatic::assembleInitialLoadVector(), oofem::DIIDynamic::assembleLoadVector(), oofem::PetscSparseMtrx::buildInternalStructure(), oofem::XfemManager::computeFictPosition(), oofem::NlDEIDynamic::computeLoadVector(), oofem::NlDEIDynamic::computeMassMtrx(), oofem::StokesFlowVelocityHomogenization::computeTangent(), oofem::DarcyFlow::DumpMatricesToFile(), oofem::PetscContext::giveNumberOfGlobalEqs(), oofem::PetscContext::giveNumberOfLocalEqs(), oofem::PetscContext::giveNumberOfNaturalEqs(), oofem::PetscNatural2GlobalOrdering::init(), oofem::PetscNatural2LocalOrdering::init(), oofem::DofDistributedPrimaryField::initialize(), oofem::PrimaryField::initialize(), oofem::NonLinearStatic::proceedStep(), oofem::NonLinearDynamic::proceedStep(), oofem::LinearStatic::solveYourself(), oofem::NonLinearStatic::solveYourself(), oofem::NonLinearDynamic::solveYourself(), oofem::NlDEIDynamic::solveYourself(), oofem::DarcyFlow::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::DEIDynamic::solveYourselfAt(), oofem::LinearStatic::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::EigenValueDynamic::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::StokesFlow::solveYourselfAt(), oofem::LinearStability::solveYourselfAt(), oofem::NonLinearDynamic::solveYourselfAt(), oofem::NlDEIDynamic::solveYourselfAt(), oofem::DIIDynamic::timesMtrx(), oofem::NonLinearDynamic::timesMtrx(), oofem::NonLinearStatic::unpackMigratingData(), oofem::NonLinearDynamic::unpackMigratingData(), oofem::NonLinearDynamic::updateComponent(), oofem::DIIDynamic::updateYourself(), and oofem::NonLinearDynamic::updateYourself().
| virtual int oofem::EngngModel::giveNumberOfFirstStep | ( | ) | [inline, virtual] |
Returns number of first time step used by receiver.
Reimplemented in oofem::StaggeredProblem, oofem::NlDEIDynamic, and oofem::DEIDynamic.
Definition at line 711 of file engngm.h.
References giveNumberOfFirstStep(), and master.
Referenced by oofem::DIIDynamic::determineConstants(), oofem::NonLinearDynamic::determineConstants(), oofem::StationaryTransportProblem::giveNextStep(), oofem::DarcyFlow::giveNextStep(), oofem::IncrementalLinearStatic::giveNextStep(), oofem::LinearStatic::giveNextStep(), oofem::DIIDynamic::giveNextStep(), oofem::NonStationaryTransportProblem::giveNextStep(), oofem::EigenValueDynamic::giveNextStep(), oofem::LinearStability::giveNextStep(), oofem::CBS::giveNextStep(), oofem::StokesFlow::giveNextStep(), oofem::SUPG::giveNextStep(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), oofem::StaggeredProblem::giveNumberOfFirstStep(), giveNumberOfFirstStep(), oofem::NonStationaryTransportProblem::giveSolutionStepWhenIcApply(), oofem::AdaptiveNonLinearStatic::giveTimeStepLoadLevel(), instanciateDefaultMetaStep(), instanciateMetaSteps(), oofem::TimeStep::isTheFirstStep(), oofem::NonLinearDynamic::proceedStep(), oofem::DIIDynamic::solveYourselfAt(), oofem::CBS::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), and oofem::OutputManager::testTimeStepOutput().
| int oofem::EngngModel::giveNumberOfMetaSteps | ( | ) | [inline] |
Return number of meta steps.
Definition at line 713 of file engngm.h.
References nMetaSteps.
Referenced by oofem::StaggeredProblem::solveYourself().
| int oofem::EngngModel::giveNumberOfPrescribedDomainEquations | ( | int | di, |
| EquationID | eid | ||
| ) | [virtual] |
Returns number of prescribed equations for given domain in active (current time step) time step.
The UnknownType parameter allows to distinguish between several possible governing equations, that can be numbered separately.
Reimplemented in oofem::SUPG, and oofem::CBS.
Definition at line 552 of file engngm.C.
References oofem::IntArray::at(), domainPrescribedNeqs, equationNumberingCompleted, and forceEquationNumbering().
Referenced by oofem::StructuralEngngModel::buildReactionTable(), oofem::StructuralEngngModel::computeExternalLoadReactionContribution(), oofem::PrescribedGradient::computeField(), oofem::MixedGradientPressureDirichlet::computeFields(), oofem::StructuralEngngModel::computeReaction(), oofem::StructuralEngngModel::printReactionForces(), and oofem::PrescribedGradient::updateCoefficientMatrix().
| int oofem::EngngModel::giveNumberOfPrescribedEquations | ( | EquationID | eid | ) | [virtual] |
Returns total number of prescribed equations in active (current time step) time step.
The UnknownType parameter allows to distinguish between several possible governing equations, that can be numbered separately.
Reimplemented in oofem::SUPG, and oofem::CBS.
Definition at line 519 of file engngm.C.
References equationNumberingCompleted, forceEquationNumbering(), and numberOfPrescribedEquations.
Referenced by oofem::NonLinearStatic::assembleIncrementalReferenceLoadVectors(), oofem::NonLinearDynamic::assembleIncrementalReferenceLoadVectors(), oofem::AdaptiveNonLinearStatic::assembleInitialLoadVector(), oofem::PetscSparseMtrx::buildInternalStructure(), oofem::PetscNatural2GlobalOrdering::init(), oofem::PetscNatural2LocalOrdering::init(), oofem::NonLinearStatic::unpackMigratingData(), and oofem::NonLinearDynamic::unpackMigratingData().
| int oofem::EngngModel::giveNumberOfProcesses | ( | ) | [inline] |
Returns the number of collaborating processes.
Definition at line 1128 of file engngm.h.
References numProcs.
Referenced by oofem::ParmetisLoadBalancer::calculateLoadTransfer(), oofem::FE2FluidMaterialStatus::createRVE(), oofem::WallClockLoadBalancerMonitor::decide(), oofem::VTKXMLExportModule::doOutput(), oofem::Subdivision::giveNumberOfProcesses(), oofem::ExportModule::giveOutputBaseFileName(), oofem::PetscNatural2GlobalOrdering::init(), oofem::NonlocalMaterialWTP::init(), oofem::NodalAveragingRecoveryModel::initCommMaps(), oofem::ZZNodalRecoveryModel::initCommMaps(), oofem::SPRNodalRecoveryModel::initCommMaps(), oofem::ParmetisLoadBalancer::initGlobalParmetisElementNumbering(), oofem::DarcyFlow::initializeFrom(), oofem::LoadBalancerMonitor::initializeFrom(), oofem::LinearStatic::initializeFrom(), oofem::DirectErrorIndicatorRC::initializeFrom(), oofem::NonLinearStatic::initializeFrom(), oofem::NonLinearDynamic::initializeFrom(), oofem::NlDEIDynamic::initializeFrom(), oofem::ParmetisLoadBalancer::labelDofManagers(), oofem::NonlocalMaterialWTP::migrate(), oofem::LoadBalancer::migrateLoad(), and oofem::FETISolver::solve().
| virtual int oofem::EngngModel::giveNumberOfSlaveProblems | ( | ) | [inline, virtual] |
Returns number of slave problems.
Reimplemented in oofem::StaggeredProblem.
| int oofem::EngngModel::giveNumberOfSteps | ( | ) | [inline] |
Returns total number of steps.
Definition at line 717 of file engngm.h.
References giveNumberOfSteps(), master, and numberOfSteps.
Referenced by giveNumberOfSteps(), oofem::AdaptiveNonLinearStatic::giveTimeStepLoadLevel(), oofem::TimeStep::isNotTheLastStep(), printYourself(), resolveCorrespondingStepNumber(), and oofem::AdaptiveNonLinearStatic::updateYourself().
| virtual int oofem::EngngModel::giveNumberOfTimeStepWhenIcApply | ( | ) | [inline, virtual] |
Returns the time step number, when initial conditions should apply.
Reimplemented in oofem::StaggeredProblem, oofem::NlDEIDynamic, oofem::DIIDynamic, and oofem::DEIDynamic.
Definition at line 721 of file engngm.h.
References giveNumberOfTimeStepWhenIcApply(), and master.
Referenced by oofem::StokesFlow::giveNextStep(), oofem::StaggeredProblem::giveNumberOfTimeStepWhenIcApply(), giveNumberOfTimeStepWhenIcApply(), oofem::NonStationaryTransportProblem::giveSolutionStepWhenIcApply(), oofem::CBS::giveSolutionStepWhenIcApply(), oofem::SUPG::giveSolutionStepWhenIcApply(), oofem::MasterDof::giveUnknown(), oofem::TimeStep::isIcApply(), and oofem::NonLinearDynamic::proceedStep().
| virtual NumericalMethod* oofem::EngngModel::giveNumericalMethod | ( | MetaStep * | mStep | ) | [inline, virtual] |
Returns reference to receiver's numerical method.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::StokesFlow, oofem::CBS, oofem::LinearStability, oofem::IncrementalLinearStatic, oofem::EigenValueDynamic, oofem::NonStationaryTransportProblem, oofem::DIIDynamic, oofem::LinearStatic, oofem::DEIDynamic, oofem::DarcyFlow, and oofem::StationaryTransportProblem.
Definition at line 724 of file engngm.h.
Referenced by restoreContext(), saveContext(), and updateAttributes().
| std::string oofem::EngngModel::giveOutputBaseFileName | ( | ) | [inline] |
Returns base output file name to which extensions, like .out .vtu .osf should be added.
Definition at line 371 of file engngm.h.
References dataOutputFileName.
Referenced by oofem::FE2FluidMaterialStatus::createRVE(), oofem::VTKXMLExportModule::doOutput(), oofem::RVEStokesFlowMaterialStatus::exportFilter(), oofem::RVEStokesFlow::exportFilter(), oofem::ExportModule::giveOutputBaseFileName(), oofem::MatlabExportModule::giveOutputStream(), oofem::HOMExportModule::initialize(), and oofem::VTKXMLExportModule::writeVTKCollection().
| FILE * oofem::EngngModel::giveOutputStream | ( | ) |
Returns file descriptor of output file.
Definition at line 1793 of file engngm.C.
References _warning2, OOFEM_ERROR2, and outputStream.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::StaggeredProblem::doStepOutput(), doStepOutput(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), oofem::Domain::instanciateYourself(), oofem::StaggeredProblem::printOutputAt(), oofem::StructuralEngngModel::printReactionForces(), oofem::SLEPcSolver::solve(), oofem::SubspaceIteration::solve(), oofem::StaggeredProblem::solveYourself(), solveYourself(), oofem::EigenValueDynamic::terminate(), oofem::LinearStatic::terminate(), oofem::LinearStability::terminate(), oofem::IncrementalLinearStatic::terminate(), oofem::StaggeredProblem::terminate(), oofem::NonLinearStatic::terminate(), oofem::NonLinearDynamic::terminate(), oofem::NlDEIDynamic::terminate(), terminate(), terminateAnalysis(), and oofem::LinearStability::terminateLinStatic().
| PetscContext * oofem::EngngModel::givePetscContext | ( | int | n, |
| EquationID | eid | ||
| ) | [virtual] |
Returns the PETSc context corresponding to given domain (n) and unknown type Default implementation returns i-th context from petscContextList.
Definition at line 1759 of file engngm.C.
References _error, _error2, oofem::AList< T >::at(), oofem::AList< T >::giveSize(), ndomains, and petscContextList.
Referenced by oofem::NRSolver::applyConstraintsToLoadIncrement(), oofem::NRSolver::applyConstraintsToStiffness(), oofem::PetscSparseMtrx::assemble(), assembleVector(), oofem::PetscSparseMtrx::buildInternalStructure(), oofem::NRSolver::checkConvergence(), oofem::CylindricalALM::CylindricalALM(), oofem::NRSolver::initPrescribedEqs(), oofem::PetscSolver::petsc_solve(), oofem::PetscSolver::solve(), oofem::SLEPcSolver::solve(), oofem::NRSolver::solve(), and oofem::PetscSparseMtrx::times().
| TimeStep* oofem::EngngModel::givePreviousStep | ( | ) | [inline] |
Returns previous time step.
Definition at line 705 of file engngm.h.
References givePreviousStep(), master, and previousStep.
Referenced by oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::TimeStep::givePreviousStep(), givePreviousStep(), oofem::NLTransientTransportProblem::giveUnknownComponent(), oofem::SUPG::giveUnknownDictHashIndx(), and oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom().
Returns Communicator mode. Determines current domain-decomposition strategy used.
Definition at line 1134 of file engngm.h.
References commMode.
Referenced by oofem::DirectErrorIndicatorRC::exchangeDofManDensities(), oofem::DirectErrorIndicatorRC::exchangeDofManIndicatorVals(), oofem::NodalAveragingRecoveryModel::exchangeDofManValues(), oofem::ZZNodalRecoveryModel::exchangeDofManValues(), oofem::SPRNodalRecoveryModel::exchangeDofManValues(), oofem::NodalAveragingRecoveryModel::initCommMaps(), oofem::ZZNodalRecoveryModel::initCommMaps(), oofem::SPRNodalRecoveryModel::initCommMaps(), and oofem::DirectErrorIndicatorRC::initializeFrom().
Definition at line 608 of file engngm.h.
References communicator, nonlocCommunicator, PC_default, and PC_nonlocal.
Referenced by oofem::Subdivision::packRemoteElements().
| problemMode oofem::EngngModel::giveProblemMode | ( | ) | [inline] |
Returns domain mode.
Definition at line 413 of file engngm.h.
References pMode.
Referenced by Instanciate_init().
| problemScale oofem::EngngModel::giveProblemScale | ( | ) | [inline] |
Returns scale in multiscale simulation.
Definition at line 420 of file engngm.h.
References pScale.
Referenced by oofem::NRSolver::checkConvergence(), oofem::NRSolver::solve(), oofem::StokesFlow::solveYourselfAt(), and oofem::Tr21Stokes::Tr21Stokes().
| int oofem::EngngModel::giveRank | ( | ) | [inline] |
Returns domain rank in a group of collaborating processes (0..groupSize-1)
Definition at line 1126 of file engngm.h.
References rank.
Referenced by balanceLoad(), oofem::ParmetisLoadBalancer::calculateLoadTransfer(), oofem::NlDEIDynamic::computeMassMtrx(), oofem::FE2FluidMaterialStatus::createRVE(), oofem::WallClockLoadBalancerMonitor::decide(), oofem::LoadBalancer::deleteRemoteDofManagers(), oofem::LoadBalancer::deleteRemoteElements(), oofem::VTKXMLExportModule::doOutput(), oofem::HuertaErrorEstimator::estimateError(), oofem::FETISolver::estimateMaxPackSize(), exchangeRemoteElementData(), oofem::ExportModule::giveOutputBaseFileName(), oofem::MatlabExportModule::giveOutputStream(), oofem::DofManager::givePartitionsConnectivitySize(), oofem::Subdivision::giveRank(), oofem::PetscNatural2GlobalOrdering::init(), oofem::NonlocalMaterialWTP::init(), oofem::PetscContext::init(), oofem::NodalAveragingRecoveryModel::initCommMaps(), oofem::ZZNodalRecoveryModel::initCommMaps(), oofem::SPRNodalRecoveryModel::initCommMaps(), oofem::ParmetisLoadBalancer::initGlobalParmetisElementNumbering(), oofem::DarcyFlow::initializeFrom(), oofem::LinearStatic::initializeFrom(), oofem::DirectErrorIndicatorRC::initializeFrom(), oofem::NonLinearStatic::initializeFrom(), oofem::NonLinearDynamic::initializeFrom(), oofem::NlDEIDynamic::initializeFrom(), oofem::PetscOrdering_Base::isLocal(), oofem::DofManager::isLocal(), oofem::ParmetisLoadBalancer::labelDofManagers(), oofem::NonlocalMaterialWTP::migrate(), oofem::LoadBalancer::migrateLoad(), oofem::LoadBalancer::packMigratingData(), oofem::NonlocalMaterialWTP::packMigratingElementDependencies(), oofem::NonlocalMaterialWTP::packRemoteElements(), oofem::ParmetisLoadBalancer::packSharedDmanPartitions(), oofem::LoadBalancer::printStatistics(), oofem::SPRNodalRecoveryModel::recoverValues(), oofem::FETISolver::setUpCommunicationMaps(), oofem::FETISolver::solve(), oofem::HuertaErrorEstimator::solveRefinedElementProblem(), oofem::HuertaErrorEstimator::solveRefinedPatchProblem(), oofem::LinearStatic::solveYourself(), oofem::NonLinearStatic::solveYourself(), oofem::NonLinearDynamic::solveYourself(), oofem::NlDEIDynamic::solveYourself(), oofem::NonLinearDynamic::solveYourselfAt(), oofem::LoadBalancer::unpackMigratingData(), oofem::NonlocalMaterialWTP::unpackMigratingElementDependencies(), oofem::NonlocalMaterialWTP::unpackRemoteElements(), oofem::Subdivision::unpackRemoteElements(), oofem::ParmetisLoadBalancer::unpackSharedDmanPartitions(), updateSharedDofManagers(), updateSharedPrescribedDofManagers(), and oofem::FETISolver::~FETISolver().
| virtual EngngModel* oofem::EngngModel::giveSlaveProblem | ( | int | i | ) | [inline, virtual] |
Returns i-th slave problem.
Reimplemented in oofem::StaggeredProblem.
Definition at line 1093 of file engngm.h.
Referenced by oofem::oofegGraphicContext::getActiveProblem(), and oofem::oofegGraphicContext::setActiveProblem().
| virtual TimeStep* oofem::EngngModel::giveSolutionStepWhenIcApply | ( | ) | [inline, virtual] |
Returns the solution step when Initial Conditions (IC) apply.
Reimplemented in oofem::SUPG, oofem::StaggeredProblem, oofem::CBS, and oofem::NonStationaryTransportProblem.
Definition at line 709 of file engngm.h.
References giveCurrentStep(), master, and stepWhenIcApply.
| EngngModelTimer* oofem::EngngModel::giveTimer | ( | ) | [inline] |
Returns reference to receiver timer (EngngModelTimer).
Definition at line 728 of file engngm.h.
References timer.
Referenced by oofem::WallClockLoadBalancerMonitor::decide(), and oofem::LoadBalancer::printStatistics().
| virtual CharType oofem::EngngModel::giveTypeOfComponent | ( | NumericalCmpn | ) | [inline, virtual] |
Provides backward mapping between numerical component and characteristic component on EngngModel level.
| virtual double oofem::EngngModel::giveUnknownComponent | ( | EquationID | , |
| ValueModeType | , | ||
| TimeStep * | , | ||
| Domain * | , | ||
| Dof * | |||
| ) | [inline, virtual] |
Returns requested unknown.
Unknown at give time step is characterized by its type and mode and by its equation number. This function is used by Dofs, when they are requested for their associated unknowns.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::CBS, oofem::LinearStability, oofem::StokesFlow, oofem::AdaptiveNonLinearStatic, oofem::DIIDynamic, oofem::EigenValueDynamic, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::DEIDynamic, oofem::IncrementalLinearStatic, oofem::DarcyFlow, oofem::NLTransientTransportProblem, and oofem::StationaryTransportProblem.
Definition at line 523 of file engngm.h.
Referenced by oofem::TR1_2D_SUPG::computeCriticalLEPlicTimeStep(), oofem::Tet1_3D_SUPG::computeCriticalTimeStep(), oofem::TR1_2D_CBS::computeCriticalTimeStep(), oofem::TR1_2D_CBS::computeDensityRhsPressureTerms(), oofem::TR1_2D_CBS::computeDensityRhsVelocityTerms(), oofem::TR1_2D_SUPG_AXI::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionDerivativeTerm_MB(), oofem::SUPGElement2::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeDiffusionDerivativeTerm_MC(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionDerivativeTerm_MC(), oofem::TR1_2D_SUPG_AXI::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionTerm_MB(), oofem::SUPGElement2::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG2::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeDiffusionTerm_MC(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionTerm_MC(), oofem::TR1_2D_CBS::computeDiffusionTermsI(), oofem::TR1_2D_CBS::computePrescribedTractionPressure(), and oofem::TractionPressureBC::give().
| virtual double oofem::EngngModel::giveUnknownComponent | ( | UnknownType | , |
| ValueModeType | , | ||
| TimeStep * | , | ||
| Domain * | , | ||
| Dof * | |||
| ) | [inline, virtual] |
Reimplemented in oofem::NonLinearStatic, oofem::SUPG, oofem::CBS, oofem::LinearStability, oofem::StokesFlow, and oofem::EigenValueDynamic.
| virtual int oofem::EngngModel::giveUnknownDictHashIndx | ( | EquationID | type, |
| ValueModeType | mode, | ||
| TimeStep * | stepN | ||
| ) | [inline, virtual] |
This method is responsible for computing unique dictionary id (ie hash value) from given equationId, valueModeType and time step.
This function is used by particular dofs to access unknown identified by given parameters from its dictionary using computed index. Usually the hash algorithm should produce index that depend on time step relatively to actual one to avoid storage of complete history.
Reimplemented in oofem::SUPG, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::IncrementalLinearStatic, oofem::NonStationaryTransportProblem, and oofem::NLTransientTransportProblem.
Definition at line 844 of file engngm.h.
Referenced by oofem::MasterDof::giveUnknownsDictionaryValue(), and oofem::MasterDof::updateUnknownsDictionary().
| virtual UnknownNumberingScheme& oofem::EngngModel::giveUnknownNumberingScheme | ( | EquationID | type | ) | [inline, virtual] |
Returns UnknownNUmberingScheme related to given EquationID.
Definition at line 848 of file engngm.h.
References defaultNumberingScheme.
Referenced by oofem::PrimaryField::giveUnknownValue().
| virtual double oofem::EngngModel::giveVariableScale | ( | VarScaleType | varId | ) | [inline, virtual] |
Returns the scale factor for given variable type.
Reimplemented in oofem::SUPG, and oofem::CBS.
Definition at line 1098 of file engngm.h.
Referenced by oofem::NewtonianFluidMaterial::checkConsistency(), oofem::NonlinearFluidMaterial::checkConsistency(), oofem::BinghamFluidMaterial2::checkConsistency(), oofem::Node::initializeFrom(), printOutputAt(), oofem::Tet1_3D_SUPG::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG_AXI::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2_AXI::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2::updateStabilizationCoeffs(), and oofem::TR1_2D_SUPG::updateStabilizationCoeffs().
| XfemManager * oofem::EngngModel::giveXfemManager | ( | int | n | ) |
Returns XfemManager at a particular position.
Definition at line 1740 of file engngm.C.
References _error2, oofem::AList< T >::at(), and oofem::AList< T >::includes().
Referenced by oofem::PlaneStress2dXfem::computeBmatrixAt(), oofem::PlaneStress2dXfem::computeConstitutiveMatrixAt(), oofem::PlaneStress2dXfem::computeStressVector(), oofem::PlaneStress2dXfem::drawRawGeometry(), oofem::PlaneStress2dXfem::drawScalar(), oofem::Node::drawYourself(), oofem::PlaneStress2dXfem::giveDofManDofIDMask(), oofem::PlaneStress2dXfem::giveLocationArray(), oofem::XfemElementInterface::XfemElementInterface_prepareNodesForDelaunay(), and oofem::XfemElementInterface::XfemElementInterface_updateIntegrationRule().
| bool oofem::EngngModel::hasXfemManager | ( | int | n | ) |
Return true if XfemManager at a particular position is available.
Definition at line 1751 of file engngm.C.
References oofem::AList< T >::includes().
| void oofem::EngngModel::init | ( | ) | [virtual] |
Initializes the receiver state.
Default implementation calls initModuleManager::doInit service to invoke initialization by individual init modules.
Definition at line 1877 of file engngm.C.
References oofem::InitModuleManager::doInit(), and initModuleManager.
Referenced by oofem::DEIDynamic::solveYourselfAt().
| virtual int oofem::EngngModel::initializeAdaptive | ( | int | stepNumber | ) | [inline, virtual] |
Initializes the newly generated discretization state according to previous solution.
This process should typically include restoring old solution, instanciating newly generated domain(s) and by mapping procedure.
Reimplemented in oofem::StaggeredProblem, oofem::AdaptiveNonLinearStatic, and oofem::AdaptiveLinearStatic.
| void oofem::EngngModel::initializeCommMaps | ( | bool | forceInit = false | ) |
Reimplemented in oofem::NonLinearDynamic.
Definition at line 2035 of file engngm.C.
References communicator, nonlocalExt, nonlocCommunicator, and oofem::ProblemCommunicator::setUpCommunicationMaps().
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::NonLinearStatic::solveYourself(), and oofem::NonLinearStatic::unpackMigratingData().
| IRResultType oofem::EngngModel::initializeFrom | ( | InputRecord * | ir | ) | [virtual] |
Initializes receiver according to object description in input reader.
InitString can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::CBS, oofem::StaggeredProblem, oofem::StokesFlow, oofem::LinearStability, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::AdaptiveNonLinearStatic, oofem::EigenValueDynamic, oofem::DIIDynamic, oofem::DEIDynamic, oofem::StationaryTransportProblem, oofem::IncrementalLinearStatic, oofem::DarcyFlow, oofem::AdaptiveLinearStatic, and oofem::NLTransientTransportProblem.
Definition at line 380 of file engngm.C.
References _error, contextOutputStep, oofem::CreateUsrDefErrorEstimator(), defaultErrEstimator, force_load_rebalance_in_first_step, giveDomain(), oofem::IFT_EngngModel_contextoutputstep, oofem::IFT_EngngModel_eetype, oofem::IFT_EngngModel_nmsteps, oofem::IFT_EngngModel_nonLinFormulation, oofem::IFT_EngngModel_nsteps, oofem::IFT_EngngModel_nxfemman, oofem::IFT_EngngModel_parallelflag, oofem::IFT_EngngModel_profileOpt, oofem::IFT_EngngModel_renumberFlag, oofem::IFT_NonLinearStatic_forceloadBalancingFlag, oofem::IFT_NonLinearStatic_loadBalancingFlag, oofem::ErrorEstimator::initializeFrom(), IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_OK, loadBalancingFlag, nMetaSteps, nonLinFormulation, numberOfSteps, nxfemman, parallelFlag, profileOpt, renumberFlag, and setUDContextOutputMode().
Referenced by instanciateYourself().
| virtual void oofem::EngngModel::initializeYourself | ( | TimeStep * | tStep | ) | [inline, virtual] |
Provides the opportunity to initialize state variables stored in element integration points according to initial conditions using function initializeYourself() on element level.
Should be called when current time step is time step when IC will apply (see EngngModel::giveNumberOfTimeStepWhenIcApply) somewhere from solveYourselfAt function). Implementation must be provided. Default implementation is empty.
Reimplemented in oofem::StaggeredProblem.
| void oofem::EngngModel::initMetaStepAttributes | ( | MetaStep * | mStep | ) |
Update e-model attributes attributes according to step metaStep attributes.
Calls updateAttributes. At the end the meta step input reader finish() service is called in order to allow for unread attribute check.
Definition at line 731 of file engngm.C.
References oofem::InputRecord::finish(), oofem::MetaStep::giveAttributesRecord(), and updateAttributes().
Referenced by oofem::MacroLSpace::computeStiffnessMatrix(), oofem::StaggeredProblem::solveYourself(), solveYourself(), and oofem::StokesFlow::solveYourselfAt().
| void oofem::EngngModel::initParallel | ( | ) |
Request domain rank and problem size.
Definition at line 1885 of file engngm.C.
References numProcs, oofem::OOFEM_LOG_RELEVANT(), processor_name, and rank.
Referenced by setParallelMode().
| void oofem::EngngModel::initPetscContexts | ( | ) | [virtual] |
Creates PETSc contexts.
Must be implemented by derived classes since the governing equation type is required for context creation.
Reimplemented in oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::StructuralEngngModel, oofem::StokesFlow, oofem::EigenValueDynamic, oofem::DarcyFlow, and oofem::StationaryTransportProblem.
Definition at line 1775 of file engngm.C.
Referenced by Instanciate_init().
| void oofem::EngngModel::initStepIncrements | ( | ) | [virtual] |
Initializes solution of new time step.
Default implementation resets all internal history variables (in integration points of elements) to previously reached equilibrium values. Can be used for time step restart.
Definition at line 1332 of file engngm.C.
References oofem::Element_remote, giveDomain(), oofem::Domain::giveElement(), oofem::Domain::giveNumberOfElements(), oofem::Element::giveParallelMode(), oofem::Element::initForNewStep(), and ndomains.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::AdaptiveNonLinearStatic::initializeAdaptive(), restoreContext(), oofem::NRSolver2::solve(), and oofem::CylindricalALM::solve().
| void oofem::EngngModel::Instanciate_init | ( | const char * | dataOutputFileName, |
| int | ndomains | ||
| ) |
Initialization of the receiver state (opening the default output stream, empty domain creation, initialization of PETSc context, etc) before Initialization form DataReader.
Called at the beginning of instanciateYourself.
| dataOutputFileName | Name of default output stream |
| ndomains | number of receiver domains |
Definition at line 272 of file engngm.C.
References _error2, oofem::_postProcessor, coreOutputFileName, domainList, domainNeqs, domainPrescribedNeqs, giveProblemMode(), oofem::AList< T >::growTo(), initPetscContexts(), ndomains, outputStream, oofem::AList< T >::put(), and oofem::IntArray::resize().
Referenced by instanciateYourself().
| int oofem::EngngModel::instanciateDefaultMetaStep | ( | InputRecord * | ir | ) | [virtual] |
Instanciate default metastep, if nmsteps is zero.
Reimplemented in oofem::StaggeredProblem.
Definition at line 479 of file engngm.C.
References _error, oofem::AList< T >::at(), giveNumberOfFirstStep(), oofem::AList< T >::growTo(), nMetaSteps, numberOfSteps, oofem::OOFEM_LOG_RELEVANT(), and oofem::AList< T >::put().
Referenced by instanciateYourself().
| int oofem::EngngModel::instanciateDomains | ( | DataReader * | dr | ) |
Instanciate problem domains by calling their instanciateYourself() service.
Definition at line 434 of file engngm.C.
References oofem::AList< T >::at(), domainList, oofem::Domain::instanciateYourself(), ndomains, and oofem::Domain::postInitialize().
Referenced by instanciateYourself().
| int oofem::EngngModel::instanciateMetaSteps | ( | DataReader * | dr | ) |
Instanciate problem meta steps by calling their instanciateYourself() service.
Definition at line 448 of file engngm.C.
References oofem::AList< T >::at(), oofem::DataReader::giveInputRecord(), giveNumberOfFirstStep(), oofem::AList< T >::growTo(), oofem::DataReader::IR_mstepRec, nMetaSteps, numberOfSteps, oofem::OOFEM_LOG_RELEVANT(), and oofem::AList< T >::put().
Referenced by instanciateYourself().
| int oofem::EngngModel::instanciateYourself | ( | DataReader * | dr, |
| InputRecord * | ir, | ||
| const char * | outFileName, | ||
| const char * | desc | ||
| ) | [virtual] |
Initializes whole problem according to its description stored in inputStream.
Prints header, opens the outFileName, instanciate itself the receiver using using virtual initializeFrom service and instanciates all problem domains.
Reimplemented in oofem::StaggeredProblem.
Definition at line 306 of file engngm.C.
References oofem::XfemManager::computeFictPosition(), oofem::InputRecord::finish(), oofem::DataReader::giveDataSourceName(), oofem::DataReader::giveInputRecord(), oofem::AList< T >::growTo(), oofem::InitModuleManager::initializeFrom(), oofem::XfemManager::initializeFrom(), initializeFrom(), initModuleManager, Instanciate_init(), instanciateDefaultMetaStep(), instanciateDomains(), instanciateMetaSteps(), oofem::ModuleManager< M >::instanciateYourself(), oofem::XfemManager::instanciateYourself(), oofem::DataReader::IR_xfemManRec, isParallel(), ndomains, nMetaSteps, numProcs, nxfemman, oofem::OOFEM_LOG_DEBUG(), outputStream, processor_name, oofem::AList< T >::put(), rank, setNumberOfEquations(), startTime, and oofem::XfemManager::updateIntegrationRule().
Referenced by oofem::InstanciateProblem().
| virtual int oofem::EngngModel::isIncremental | ( | ) | [inline, virtual] |
Returns nonzero if receiver does incremental analysis.
Reimplemented in oofem::NonLinearDynamic, oofem::NonLinearStatic, and oofem::StaggeredProblem.
Definition at line 1068 of file engngm.h.
Referenced by oofem::RerShell::printOutputAt().
| bool oofem::EngngModel::isParallel | ( | ) | [inline] |
Returns true if receiver in parallel mode.
Definition at line 1072 of file engngm.h.
References parallelFlag.
Referenced by oofem::PetscContext::accumulate(), oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::PetscSparseMtrx::assemble(), assembleVector(), oofem::PetscSparseMtrx::buildInternalStructure(), oofem::NRSolver::checkConvergence(), oofem::FE2FluidMaterialStatus::createRVE(), oofem::PetscContext::createVecGlobal(), oofem::VTKXMLExportModule::doOutput(), exchangeRemoteElementData(), oofem::StructuralEngngModel::giveInternalForces(), oofem::Domain::giveNextFreeDofID(), oofem::PetscContext::giveNumberOfGlobalEqs(), oofem::PetscContext::giveNumberOfLocalEqs(), oofem::LinearStatic::giveNumericalMethod(), oofem::ExportModule::giveOutputBaseFileName(), oofem::PetscContext::init(), oofem::DarcyFlow::initializeFrom(), oofem::LinearStatic::initializeFrom(), oofem::NonLinearStatic::initializeFrom(), oofem::NonLinearDynamic::initializeFrom(), instanciateYourself(), oofem::PetscContext::isLocal(), oofem::PetscContext::localDotProduct(), oofem::PetscContext::localNorm(), oofem::PetscContext::naturalDotProduct(), oofem::PetscContext::naturalNorm(), oofem::PetscContext::PetscContext(), oofem::NodalAveragingRecoveryModel::recoverValues(), oofem::ZZNodalRecoveryModel::recoverValues(), oofem::PetscContext::scatterG2N(), oofem::PetscContext::scatterL2G(), oofem::PetscContext::scatterN2G(), oofem::LinearStatic::solveYourself(), oofem::NonLinearStatic::solveYourself(), oofem::NonLinearDynamic::solveYourself(), oofem::NonLinearDynamic::solveYourselfAt(), oofem::PetscSparseMtrx::times(), oofem::PetscSparseMtrx::timesT(), updateSharedDofManagers(), and updateSharedPrescribedDofManagers().
| void oofem::EngngModel::letOutputBaseFileNameBe | ( | const std::string & | src | ) | [inline] |
Sets the base output file name.
| src | New output file name. |
Definition at line 377 of file engngm.h.
References dataOutputFileName.
Referenced by oofem::FE2FluidMaterialStatus::createRVE(), oofem::RVEStokesFlowMaterialStatus::exportFilter(), and oofem::RVEStokesFlow::exportFilter().
| int oofem::EngngModel::packDofManagers | ( | FloatArray * | src, |
| ProcessCommunicator & | processComm, | ||
| bool | prescribedEquations | ||
| ) | [protected] |
Packing function for vector values of DofManagers.
Packs vector values of shared/remote DofManagers into send communication buffer of given process communicator.
| processComm | Task communicator. |
| src | Source vector. |
| prescribedEquations | True if src uses prescribed equations numbering. |
Definition at line 2133 of file engngm.C.
References oofem::Dof::__giveEquationNumber(), oofem::Dof::__givePrescribedEquationNumber(), oofem::IntArray::at(), oofem::FloatArray::at(), oofem::DofManager::giveDof(), oofem::Domain::giveDofManager(), giveDomain(), oofem::DofManager::giveNumberOfDofs(), oofem::ProcessCommunicator::giveProcessCommunicatorBuff(), oofem::IntArray::giveSize(), oofem::ProcessCommunicator::giveToSendMap(), oofem::Dof::isPrimaryDof(), and oofem::ProcessCommunicatorBuff::packDouble().
Referenced by packDofManagers(), packPrescribedDofManagers(), and updateSharedDofManagers().
| int oofem::EngngModel::packDofManagers | ( | FloatArray * | src, |
| ProcessCommunicator & | processComm | ||
| ) |
Packing function for vector values of DofManagers.
Packs vector values of shared/remote DofManagers into send communication buffer of given process communicator.
| processComm | Task communicator. |
| src | Source vector. |
Definition at line 2119 of file engngm.C.
References packDofManagers().
| virtual void oofem::EngngModel::packMigratingData | ( | TimeStep * | ) | [inline, protected, virtual] |
Packs receiver data when rebalancing load.
When rebalancing happens, the local numbering will be lost on majority of processors. Instead of identifying values of solution vectors that have to be send/received and then performing renumbering, all solution vectors are assumed to be stored in dof dictionaries before data migration. Then dofs will take care themselves for packing and unpacking. After data migration and local renumbering, the solution vectors will be restored from dof dictionary data back.
Reimplemented in oofem::NonLinearDynamic, and oofem::NonLinearStatic.
Definition at line 1012 of file engngm.h.
Referenced by balanceLoad().
| int oofem::EngngModel::packPrescribedDofManagers | ( | FloatArray * | src, |
| ProcessCommunicator & | processComm | ||
| ) |
Packing function for vector values of DofManagers.
Packs vector values of shared/remote prescribed DofManagers into send communication buffer of given process communicator.
| processComm | Task communicator. |
| src | Source vector. |
Definition at line 2126 of file engngm.C.
References packDofManagers().
Referenced by updateSharedPrescribedDofManagers().
| int oofem::EngngModel::packRemoteElementData | ( | ProcessCommunicator & | processComm | ) |
Packs data of local element to be received by their remote counterpart on remote partitions.
Remote elements are introduced when nonlocal constitutive models are used, in order to allow local averaging procedure (remote elements, which are involved in averaging on local partition are mirrored on this local partition) instead of implementing inefficient fine-grain communication. Remote element data are exchanged only if necessary and once for all of them. Current implementation calls packUnknowns service for all elements listed in given process communicator send map.
| processComm | Corresponding process communicator. |
Definition at line 2079 of file engngm.C.
References oofem::IntArray::at(), giveCurrentStep(), giveDomain(), oofem::Domain::giveElement(), oofem::ProcessCommunicator::giveProcessCommunicatorBuff(), oofem::ProcessCommunicatorBuff::giveSendBuff(), oofem::IntArray::giveSize(), and oofem::ProcessCommunicator::giveToSendMap().
Referenced by exchangeRemoteElementData().
| virtual void oofem::EngngModel::printDofOutputAt | ( | FILE * | stream, |
| Dof * | iDof, | ||
| TimeStep * | atTime | ||
| ) | [pure virtual] |
DOF printing routine.
Called by DofManagers to print Dof specific part. Dof class provides component printing routines, but emodel is responsible for what will be printed at DOF level.
| stream | output stream |
| iDof | dof to be processed |
| atTime | solution step |
Implemented in oofem::NlDEIDynamic, oofem::SUPG, oofem::CBS, oofem::NonLinearDynamic, oofem::StaggeredProblem, oofem::StokesFlow, oofem::LinearStability, oofem::NonStationaryTransportProblem, oofem::EigenValueDynamic, oofem::DIIDynamic, oofem::IncrementalLinearStatic, oofem::LinearStatic, oofem::DEIDynamic, oofem::StationaryTransportProblem, and oofem::DarcyFlow.
Referenced by oofem::DofManager::printOutputAt().
| void oofem::EngngModel::printOutputAt | ( | FILE * | file, |
| TimeStep * | tStep | ||
| ) | [virtual] |
Prints output of receiver to output domain stream, for given time step.
Corresponding function for element gauss points is invoked (gaussPoint::printOutputAt).
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, and oofem::StaggeredProblem.
Definition at line 850 of file engngm.C.
References oofem::OutputManager::doDofManOutput(), oofem::OutputManager::doElementOutput(), giveDomain(), oofem::Domain::giveNumber(), oofem::Domain::giveOutputManager(), oofem::TimeStep::giveTargetTime(), giveVariableScale(), ndomains, oofem::OutputManager::testTimeStepOutput(), and oofem::VST_Time.
Referenced by doStepOutput(), and oofem::StaggeredProblem::printOutputAt().
| void oofem::EngngModel::printYourself | ( | ) |
Prints state of receiver. Useful for debugging.
Reimplemented in oofem::StaggeredProblem.
Definition at line 878 of file engngm.C.
References giveClassName(), giveNumberOfSteps(), and numberOfEquations.
| virtual bool oofem::EngngModel::requiresEquationRenumbering | ( | TimeStep * | tStep | ) | [inline, virtual] |
Returns true if equation renumbering is required for given solution step.
This may of course change the number of equation and in general there is no guarantee that for a certain dof the same equation will be assigned. So the use of DOF unknowns dictionaries is generally recommended.
Reimplemented in oofem::IncrementalLinearStatic, and oofem::NonStationaryTransportProblem.
Definition at line 829 of file engngm.h.
References renumberFlag.
Referenced by oofem::StaggeredProblem::forceEquationNumbering(), oofem::StaggeredProblem::solveYourself(), and solveYourself().
| virtual int oofem::EngngModel::requiresUnknownsDictionaryUpdate | ( | ) | [inline, virtual] |
Indicates if EngngModel requires Dofs dictionaries to be updated.
If EngngModel does not support changes of static system, the dof forwards the requests for its unknowns to EngngModel, where unknowns are naturally kept. This is possible, because dof equation number is same during whole solution. But when changes of static system are allowed, several problem arise. For example by solving simple incremental static with allowed static changes, the incremental displacement vector of structure can not be added to total displacement vector of structure, because equation numbers may have changed, and one can not simply add these vector to obtain new total displacement vector, because incompatible displacement will be added. To solve this problem, unknown dictionary at dof level has been assumed. Dof then keeps its unknowns in its own private dictionary. After computing increment of solution, engngModel updates for each dof its unknowns in its dictionary (using updateUnknownsDictionary function). For aforementioned example engngModel updates incremental values but also total value by asking dof for previous total value (dof will use its dictionary, does not asks back EngngModel) adds corresponding increment and updates total value in dictionary.
Reimplemented in oofem::SUPG, oofem::IncrementalLinearStatic, and oofem::NonStationaryTransportProblem.
Definition at line 822 of file engngm.h.
Referenced by oofem::MasterDof::giveUnknown(), oofem::PetscSolver::petsc_solve(), oofem::MasterDof::restoreContext(), oofem::MasterDof::saveContext(), oofem::EigenValueDynamic::terminate(), oofem::LinearStability::terminate(), oofem::LinearStability::terminateLinStatic(), oofem::StructuralEngngModel::updateInternalState(), and oofem::CBS::updateInternalState().
| virtual void oofem::EngngModel::resetRenumberFlag | ( | ) | [inline, virtual] |
| void oofem::EngngModel::resolveCorrespondingStepNumber | ( | int & | istep, |
| int & | iversion, | ||
| void * | obj | ||
| ) |
Definition at line 1576 of file engngm.C.
References giveNumberOfSteps().
Referenced by oofem::StationaryTransportProblem::restoreContext(), oofem::IncrementalLinearStatic::restoreContext(), oofem::LinearStatic::restoreContext(), oofem::NonStationaryTransportProblem::restoreContext(), oofem::LinearStability::restoreContext(), oofem::DIIDynamic::restoreContext(), oofem::CBS::restoreContext(), oofem::AdaptiveNonLinearStatic::restoreContext(), oofem::SUPG::restoreContext(), oofem::NonLinearStatic::restoreContext(), oofem::NonLinearDynamic::restoreContext(), oofem::NlDEIDynamic::restoreContext(), and restoreContext().
| contextIOResultType oofem::EngngModel::restoreContext | ( | DataStream * | stream, |
| ContextMode | mode, | ||
| void * | obj = NULL |
||
| ) | [virtual] |
Restores the state of model from output stream.
Restores not only the receiver state, but also same function is invoked for all DofManagers and Elements in associated domain. Note that by restoring element context also contexts of all associated integration points (and material statuses) are restored. Each context is associated with unique time step. Only one context per time step is allowed. Restore context function will restore such context, which is related (through its step number) to time step number and version given in obj parameter. Restoring context will change current time step in order to correspond to newly restored context.
| stream | Context file. |
| mode | Determines amount of info in stream. |
| obj | Void pointer to an int array containing two values:time step number and version of a context file to be restored. |
| ContextIOERR | exception if error encountered. |
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::StaggeredProblem, oofem::AdaptiveNonLinearStatic, oofem::CBS, oofem::DIIDynamic, oofem::LinearStability, oofem::EigenValueDynamic, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::IncrementalLinearStatic, oofem::StationaryTransportProblem, oofem::AdaptiveLinearStatic, and oofem::DarcyFlow.
Definition at line 1460 of file engngm.C.
References oofem::CIO_IOERR, oofem::CIO_OK, oofem::contextMode_read, currentStep, domainNeqs, domainPrescribedNeqs, giveContextFile(), giveCurrentMetaStep(), giveDomain(), giveMetaStep(), oofem::TimeStep::giveMetaStepNumber(), giveNumericalMethod(), oofem::TimeStep::giveSolutionStateCounter(), oofem::TimeStep::giveTargetTime(), oofem::TimeStep::giveTimeIncrement(), initStepIncrements(), ndomains, nMetaSteps, numberOfEquations, numberOfPrescribedEquations, oofem::OOFEM_LOG_RELEVANT(), previousStep, oofem::DataStream::read(), renumberFlag, resolveCorrespondingStepNumber(), oofem::FEMComponent::restoreContext(), oofem::TimeStep::restoreContext(), oofem::Domain::restoreContext(), oofem::IntArray::restoreYourself(), THROW_CIOERR, updateAttributes(), and updateDomainLinks().
Referenced by oofem::HuertaErrorEstimator::estimateError(), oofem::StationaryTransportProblem::restoreContext(), oofem::IncrementalLinearStatic::restoreContext(), oofem::LinearStatic::restoreContext(), oofem::NonStationaryTransportProblem::restoreContext(), oofem::EigenValueDynamic::restoreContext(), oofem::LinearStability::restoreContext(), oofem::DIIDynamic::restoreContext(), oofem::CBS::restoreContext(), oofem::StaggeredProblem::restoreContext(), oofem::SUPG::restoreContext(), oofem::NonLinearStatic::restoreContext(), oofem::NonLinearDynamic::restoreContext(), and oofem::NlDEIDynamic::restoreContext().
| contextIOResultType oofem::EngngModel::saveContext | ( | DataStream * | stream, |
| ContextMode | mode, | ||
| void * | obj = NULL |
||
| ) | [virtual] |
Stores the state of model to output stream.
Stores not only the receiver state, but also same function is invoked for all DofManagers and Elements in associated domain. Note that by storing element context also contexts of all associated integration points (and material statuses) are stored. Stored context is associated with current time step. One time step can have only one associated context. Multiple call to saveContext within same time step override previously saved context for this step. By default the stream parameter is used to store data and is not closed. If stream is NULL, new file descriptor is created and this must be also closed at the end.
| stream | Context stream. If NULL then new file descriptor will be opened and closed at the end else the stream given as parameter will be used and not closed at the end. |
| mode | Determines amount of info in stream. |
| obj | Void pointer to an int array containing two values:time step number and version of a context file to be restored. |
| ContextIOERR | If error encountered. |
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::AdaptiveNonLinearStatic, oofem::StaggeredProblem, oofem::CBS, oofem::DIIDynamic, oofem::LinearStability, oofem::EigenValueDynamic, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::IncrementalLinearStatic, oofem::StationaryTransportProblem, and oofem::DarcyFlow.
Definition at line 1372 of file engngm.C.
References oofem::CIO_IOERR, oofem::CIO_OK, oofem::contextMode_write, domainNeqs, domainPrescribedNeqs, giveContextFile(), giveCurrentStep(), giveDomain(), giveMetaStep(), giveNumericalMethod(), ndomains, numberOfEquations, numberOfPrescribedEquations, oofem::OOFEM_LOG_INFO(), renumberFlag, oofem::FEMComponent::saveContext(), oofem::Domain::saveContext(), oofem::IntArray::storeYourself(), THROW_CIOERR, and oofem::DataStream::write().
Referenced by oofem::StationaryTransportProblem::saveContext(), oofem::IncrementalLinearStatic::saveContext(), oofem::LinearStatic::saveContext(), oofem::NonStationaryTransportProblem::saveContext(), oofem::EigenValueDynamic::saveContext(), oofem::LinearStability::saveContext(), oofem::DIIDynamic::saveContext(), oofem::CBS::saveContext(), oofem::StaggeredProblem::saveContext(), oofem::SUPG::saveContext(), oofem::NonLinearStatic::saveContext(), oofem::NonLinearDynamic::saveContext(), oofem::NlDEIDynamic::saveContext(), and saveStepContext().
| void oofem::EngngModel::saveStepContext | ( | TimeStep * | tStep | ) |
Saves context of given solution step, if required (determined using this->giveContextOutputMode() method).
Definition at line 833 of file engngm.C.
References CM_State, oofem::COM_Always, oofem::COM_Required, oofem::COM_UserDefined, giveContextOutputMode(), giveContextOutputStep(), oofem::TimeStep::giveNumber(), and saveContext().
Referenced by oofem::EigenValueDynamic::terminate(), oofem::LinearStability::terminate(), oofem::NonLinearStatic::terminate(), oofem::NonLinearDynamic::terminate(), and terminate().
| void oofem::EngngModel::setContextOutputMode | ( | ContextOutputMode | contextMode | ) | [inline] |
Sets context output mode of receiver.
| contextMode | domain context mode. |
Reimplemented in oofem::StaggeredProblem.
Definition at line 390 of file engngm.h.
References contextOutputMode.
Referenced by oofem::InstanciateProblem(), and oofem::AdaptiveNonLinearStatic::solveYourselfAt().
| void oofem::EngngModel::setDomain | ( | int | i, |
| Domain * | ptr | ||
| ) |
Sets i-th domain of receiver.
Given domain is assumed to be owned (and deleted) by receiver. The old domain, if defined, will be deleted.
| i | Domain index. |
| ptr | Pointer to valid domain instance. |
Definition at line 1728 of file engngm.C.
References _error3, domainList, ndomains, and oofem::AList< T >::put().
| void oofem::EngngModel::setNumberOfEquations | ( | int | id, |
| int | neq | ||
| ) | [inline] |
Definition at line 360 of file engngm.h.
References oofem::IntArray::at(), domainNeqs, and numberOfEquations.
Referenced by instanciateYourself().
| void oofem::EngngModel::setParallelMode | ( | bool | parallelFlag | ) |
Sets the problem to run in parallel (or not).
| parallelFlag | Determines parallel mode. |
Definition at line 258 of file engngm.C.
References initParallel(), OOFEM_ERROR, and parallelFlag.
Referenced by oofem::InstanciateProblem().
| void oofem::EngngModel::setProblemMode | ( | problemMode | pmode | ) | [inline] |
Sets domain mode to given mode.
| pmode | Problem mode. |
Reimplemented in oofem::StaggeredProblem.
Definition at line 406 of file engngm.h.
References pMode.
Referenced by oofem::InstanciateProblem().
| void oofem::EngngModel::setProblemScale | ( | problemScale | pscale | ) | [inline] |
Sets scale in multiscale simulation.
| pscale | Problem scale. |
Definition at line 418 of file engngm.h.
References pScale.
Referenced by oofem::MacroLSpace::computeStiffnessMatrix().
| virtual void oofem::EngngModel::setRenumberFlag | ( | ) | [inline, virtual] |
Sets the renumber flag to true.
Reimplemented in oofem::StaggeredProblem.
Definition at line 422 of file engngm.h.
References renumberFlag.
Referenced by oofem::StaggeredProblem::setRenumberFlag().
| void oofem::EngngModel::setUDContextOutputMode | ( | int | cStep | ) | [inline] |
Sets user defined context output mode (it sets contextOutputMode to contextOutputMode), setting contextOutputStep to given value.
| cStep | new context output step |
Reimplemented in oofem::StaggeredProblem.
Definition at line 397 of file engngm.h.
References oofem::COM_UserDefined, contextOutputMode, and contextOutputStep.
Referenced by initializeFrom().
| virtual void oofem::EngngModel::showSparseMtrxStructure | ( | int | type, |
| oofegGraphicContext & | context, | ||
| TimeStep * | atTime | ||
| ) | [inline, virtual] |
Shows the sparse structure of required matrix, type == 1 stiffness.
Reimplemented in oofem::StaggeredProblem, oofem::NonLinearDynamic, oofem::NonLinearStatic, and oofem::StructuralEngngModel.
| void oofem::EngngModel::solveYourself | ( | ) | [virtual] |
Starts solution process.
Implementation should invoke for each time step solveYourselfAt function with time step as parameter. Time steps are created using giveNextStep function (this will set current time step to newly created, and updates previous step).
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::StaggeredProblem, oofem::LinearStability, oofem::DIIDynamic, oofem::LinearStatic, and oofem::IncrementalLinearStatic.
Definition at line 675 of file engngm.C.
References balanceLoad(), currentStep, oofem::EngngModelTimer::EMTT_AnalysisTimer, oofem::EngngModelTimer::EMTT_NetComputationalStepTimer, oofem::EngngModelTimer::EMTT_SolutionStepTimer, forceEquationNumbering(), oofem::EngngModelTimer::getUtime(), giveCurrentStep(), giveMetaStep(), oofem::TimeStep::giveMetaStepNumber(), giveNextStep(), oofem::TimeStep::giveNumber(), oofem::MetaStep::giveNumberOfSteps(), giveOutputStream(), oofem::MetaStep::giveStepRelativeNumber(), initMetaStepAttributes(), oofem::EngngModelTimer::initTimer(), loadBalancingFlag, nMetaSteps, oofem::OOFEM_LOG_INFO(), requiresEquationRenumbering(), solveYourselfAt(), oofem::EngngModelTimer::startTimer(), oofem::EngngModelTimer::stopTimer(), terminate(), timer, and updateYourself().
Referenced by oofem::HuertaErrorEstimator::solveRefinedElementProblem(), and oofem::HuertaErrorEstimator::solveRefinedPatchProblem().
| virtual void oofem::EngngModel::solveYourselfAt | ( | TimeStep * | tStep | ) | [inline, virtual] |
Solves problem for given time step.
Should assemble characteristic matrices and vectors if necessary and solve problem using appropriate numerical method. After finishing solution, this->updateYourself function for updating solution state and then this->terminate function (for updating nodal and element values) should be called.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::CBS, oofem::StaggeredProblem, oofem::LinearStability, oofem::StokesFlow, oofem::AdaptiveNonLinearStatic, oofem::DIIDynamic, oofem::EigenValueDynamic, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::DEIDynamic, oofem::IncrementalLinearStatic, oofem::NLTransientTransportProblem, oofem::StationaryTransportProblem, oofem::StokesFlowVelocityHomogenization, and oofem::DarcyFlow.
Definition at line 445 of file engngm.h.
Referenced by oofem::MacroLSpace::giveInternalForcesVector(), solveYourself(), and oofem::StaggeredProblem::solveYourselfAt().
| void oofem::EngngModel::terminate | ( | TimeStep * | tStep | ) | [virtual] |
Terminates the solution of time step.
Default implementation calls prinOutput() service and if specified, context of whole domain is stored and output for given time step is printed.
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::StaggeredProblem, oofem::IncrementalLinearStatic, oofem::LinearStability, oofem::LinearStatic, and oofem::EigenValueDynamic.
Definition at line 813 of file engngm.C.
References doStepOutput(), giveOutputStream(), and saveStepContext().
Referenced by solveYourself(), oofem::StaggeredProblem::terminate(), oofem::MacroLSpace::updateYourself(), and oofem::FE2FluidMaterialStatus::updateYourself().
| void oofem::EngngModel::terminateAnalysis | ( | ) |
Performs analysis termination after finishing analysis.
Definition at line 1825 of file engngm.C.
References oofem::EngngModelTimer::convert2HMS(), oofem::EngngModelTimer::EMTT_AnalysisTimer, oofem::EngngModelTimer::getUtime(), oofem::EngngModelTimer::getWtime(), giveOutputStream(), oofem::LOG_FORCED_MSG(), oofem::oofem_logger, oofem::EngngModelTimer::stopTimer(), and timer.
Referenced by oofem::HuertaErrorEstimator::solveRefinedElementProblem(), oofem::HuertaErrorEstimator::solveRefinedPatchProblem(), oofem::AdaptiveNonLinearStatic::solveYourselfAt(), and oofem::AdaptiveLinearStatic::updateYourself().
| bool oofem::EngngModel::testContextFile | ( | int | stepNumber, |
| int | stepVersion | ||
| ) |
Returns true if context file for given step and version is available.
Definition at line 1638 of file engngm.C.
References coreOutputFileName.
| int oofem::EngngModel::unpackDofManagers | ( | FloatArray * | dest, |
| ProcessCommunicator & | processComm, | ||
| bool | prescribedEquations | ||
| ) | [protected] |
Unpacking function for vector values of DofManagers .
Unpacks vector of shared/remote DofManagers from receive communication buffer of given process communicator.
| processComm | Task communicator. |
| dest | Destination vector. |
| prescribedEquations | True if src uses prescribed equations numbering. |
Definition at line 2179 of file engngm.C.
References oofem::Dof::__giveEquationNumber(), oofem::Dof::__givePrescribedEquationNumber(), _error, oofem::IntArray::at(), oofem::FloatArray::at(), oofem::DofManager_remote, oofem::DofManager_shared, oofem::DofManager::giveDof(), oofem::Domain::giveDofManager(), giveDomain(), oofem::DofManager::giveNumberOfDofs(), oofem::DofManager::giveParallelMode(), oofem::ProcessCommunicator::giveProcessCommunicatorBuff(), oofem::IntArray::giveSize(), oofem::ProcessCommunicator::giveToRecvMap(), oofem::Dof::isPrimaryDof(), and oofem::ProcessCommunicatorBuff::unpackDouble().
Referenced by unpackDofManagers(), unpackPrescribedDofManagers(), and updateSharedDofManagers().
| int oofem::EngngModel::unpackDofManagers | ( | FloatArray * | dest, |
| ProcessCommunicator & | processComm | ||
| ) |
Unpacking function for vector values of DofManagers .
Unpacks vector of shared/remote DofManagers from receive communication buffer of given process communicator.
| processComm | Task communicator. |
| dest | Destination vector. |
Definition at line 2165 of file engngm.C.
References unpackDofManagers().
| virtual void oofem::EngngModel::unpackMigratingData | ( | TimeStep * | ) | [inline, protected, virtual] |
Unpacks receiver data when rebalancing load.
When rebalancing happens, the local numbering will be lost on majority of processors. Instead of identifying values of solution vectors that have to be send/received and then performing renumbering, all solution vectors are assumed to be stored in dof dictionaries before data migration. Then dofs will take care themselves for packing and unpacking. After data migration and local renumbering, the solution vectors will be restored from dof dictionary data back.
Reimplemented in oofem::NonLinearDynamic, and oofem::NonLinearStatic.
Definition at line 1019 of file engngm.h.
Referenced by balanceLoad().
| int oofem::EngngModel::unpackPrescribedDofManagers | ( | FloatArray * | dest, |
| ProcessCommunicator & | processComm | ||
| ) |
Unpacking function for vector values of DofManagers .
Unpacks vector of shared/remote prescribed DofManagers from receive communication buffer of given process communicator.
| processComm | Task communicator. |
| dest | Destination vector. |
Definition at line 2172 of file engngm.C.
References unpackDofManagers().
Referenced by updateSharedPrescribedDofManagers().
| int oofem::EngngModel::unpackRemoteElementData | ( | ProcessCommunicator & | processComm | ) |
Unpacks data for remote elements (which are mirrors of remote partition's local elements).
Remote elements are introduced when nonlocal constitutive models are used, in order to allow local averaging procedure (remote elements, which are involved in averaging on local partition are mirrored on this local partition) instead of implementing inefficient fine-grain communication. Remote element data are exchanged only if necessary and once for all of them. Current implementation calls unpackAndUpdateUnknowns service for all elements listed in given process communicator receive map.
| processComm | Corresponding process communicator. |
Definition at line 2096 of file engngm.C.
References _error, oofem::IntArray::at(), oofem::Element_remote, giveCurrentStep(), giveDomain(), oofem::Domain::giveElement(), oofem::Element::giveParallelMode(), oofem::ProcessCommunicator::giveProcessCommunicatorBuff(), oofem::ProcessCommunicatorBuff::giveRecvBuff(), oofem::IntArray::giveSize(), oofem::ProcessCommunicator::giveToRecvMap(), and oofem::Element::unpackAndUpdateUnknowns().
Referenced by exchangeRemoteElementData().
| void oofem::EngngModel::updateAttributes | ( | MetaStep * | mStep | ) | [virtual] |
Update receiver attributes according to step metaStep attributes.
Allows the certain parameters or attributes to be updated for particular metastep. The metastep provides the attributes record, from which the corresponding attributes can be read. The service takes a MetaStep parameter. It is recommended, to implement this service in such way, that multiple calls for steps belonging to same MetaStep does not change response. The default implementation updates the numerical method attributes.
| mStep | Meta step. |
Reimplemented in oofem::NonLinearDynamic, oofem::NonLinearStatic, and oofem::StaggeredProblem.
Definition at line 740 of file engngm.C.
References oofem::MetaStep::giveAttributesRecord(), giveLoadBalancer(), giveLoadBalancerMonitor(), giveNumericalMethod(), oofem::LoadBalancerMonitor::initializeFrom(), oofem::FEMComponent::initializeFrom(), and oofem::LoadBalancer::initializeFrom().
Referenced by initMetaStepAttributes(), restoreContext(), oofem::LinearStability::solveYourself(), and oofem::StaggeredProblem::updateAttributes().
| void oofem::EngngModel::updateComponent | ( | TimeStep * | tStep, |
| NumericalCmpn | cmpn, | ||
| Domain * | d | ||
| ) | [virtual] |
Updates components mapped to numerical method if necessary during solution process.
Some numerical methods may require updating mapped components during solution process (e.g., updating of tangent stiffness when using updated Newton-Raphson method).
| tStep | Time when component is updated. |
| cmpn | Numerical component to update. |
| d | Domain. |
Reimplemented in oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::StokesFlow, and oofem::DarcyFlow.
Definition at line 1321 of file engngm.C.
References _error.
Referenced by oofem::CylindricalALM::do_lineSearch(), oofem::LineSearchNM::solve(), oofem::NRSolver::solve(), oofem::NRSolver2::solve(), and oofem::CylindricalALM::solve().
| virtual void oofem::EngngModel::updateDofUnknownsDictionary | ( | DofManager * | , |
| TimeStep * | |||
| ) | [inline, virtual] |
Updates necessary values in Dofs unknown dictionaries.
Reimplemented in oofem::SUPG, oofem::IncrementalLinearStatic, and oofem::NLTransientTransportProblem.
Definition at line 836 of file engngm.h.
Referenced by oofem::EigenValueDynamic::terminate(), oofem::LinearStability::terminate(), oofem::LinearStability::terminateLinStatic(), oofem::StructuralEngngModel::updateInternalState(), and oofem::CBS::updateInternalState().
| void oofem::EngngModel::updateDomainLinks | ( | ) | [virtual] |
Updates domain links after the domains of receiver have changed.
Used mainly after restoring context - the domains may change and this service is then used to update domain variables in all components belonging to receiver like error estimators, solvers, etc, having domains as attributes.
Reimplemented in oofem::NonLinearDynamic, oofem::NonLinearStatic, oofem::SUPG, oofem::AdaptiveNonLinearStatic, oofem::StaggeredProblem, oofem::CBS, oofem::NonStationaryTransportProblem, oofem::LinearStatic, oofem::StationaryTransportProblem, and oofem::AdaptiveLinearStatic.
Definition at line 1366 of file engngm.C.
References giveExportModuleManager(), and oofem::ExportModuleManager::initialize().
Referenced by restoreContext(), and oofem::StaggeredProblem::updateDomainLinks().
| int oofem::EngngModel::updateSharedDofManagers | ( | FloatArray & | answer, |
| int | ExchangeTag | ||
| ) |
Exchanges necessary remote DofManagers data.
| answer | Array with collected values. |
| ExchangeTag | Exchange tag used by communicator. |
Definition at line 1975 of file engngm.C.
References communicator, oofem::Communicator::finishExchange(), giveRank(), oofem::Communicator::initExchange(), isParallel(), oofem::Communicator::packAllData(), packDofManagers(), oofem::Communicator::unpackAllData(), unpackDofManagers(), and VERBOSEPARALLEL_PRINT.
Referenced by oofem::NonLinearStatic::assembleIncrementalReferenceLoadVectors(), oofem::NonLinearDynamic::assembleIncrementalReferenceLoadVectors(), oofem::NlDEIDynamic::computeLoadVector(), oofem::NlDEIDynamic::computeMassMtrx(), oofem::StructuralEngngModel::giveInternalForces(), and oofem::NonLinearDynamic::timesMtrx().
| int oofem::EngngModel::updateSharedPrescribedDofManagers | ( | FloatArray & | answer, |
| int | ExchangeTag | ||
| ) |
Exchanges necessary remote prescribed DofManagers data.
| answer | Array with collected values. |
| ExchangeTag | Exchange tag used by communicator. |
Definition at line 2005 of file engngm.C.
References communicator, oofem::Communicator::finishExchange(), giveRank(), oofem::Communicator::initExchange(), isParallel(), oofem::Communicator::packAllData(), packPrescribedDofManagers(), oofem::Communicator::unpackAllData(), unpackPrescribedDofManagers(), and VERBOSEPARALLEL_PRINT.
Referenced by oofem::StructuralEngngModel::computeReaction().
| void oofem::EngngModel::updateYourself | ( | TimeStep * | tStep | ) | [virtual] |
Updates internal state after finishing time step.
(for example total values may be updated according to previously solved increments). Then element values are also updated (together with related integration points and material statuses).
Reimplemented in oofem::NlDEIDynamic, oofem::NonLinearDynamic, oofem::StructuralEngngModel, oofem::SUPG, oofem::CBS, oofem::StaggeredProblem, oofem::LinearStability, oofem::StokesFlow, oofem::AdaptiveNonLinearStatic, oofem::DIIDynamic, oofem::EigenValueDynamic, oofem::NonStationaryTransportProblem, oofem::NLTransientTransportProblem, oofem::StationaryTransportProblem, oofem::DarcyFlow, and oofem::AdaptiveLinearStatic.
Definition at line 762 of file engngm.C.
References defaultErrEstimator, oofem::Element_remote, oofem::equilibratedEM, oofem::ErrorEstimator::estimateError(), oofem::Domain::giveDofManager(), giveDomain(), oofem::Domain::giveElement(), oofem::Domain::giveNumber(), oofem::Domain::giveNumberOfDofManagers(), giveNumberOfDomains(), oofem::Domain::giveNumberOfElements(), oofem::Element::giveParallelMode(), ndomains, oofem::DofManager::updateYourself(), oofem::Element::updateYourself(), and VERBOSE_PRINT0.
Referenced by oofem::MacroLSpace::giveInternalForcesVector(), solveYourself(), and oofem::StaggeredProblem::updateYourself().
| virtual int oofem::EngngModel::useNonlocalStiffnessOption | ( | ) | [inline, virtual] |
Returns nonzero if nonlocal stiffness option activated.
Reimplemented in oofem::NonLinearDynamic, oofem::NonLinearStatic, and oofem::StaggeredProblem.
Definition at line 1070 of file engngm.h.
Referenced by oofem::SkylineUnsym::buildInternalStructure().
| void oofem::EngngModel::warning | ( | const char * | file, |
| int | line, | ||
| const char * | format, | ||
| ... | |||
| ) | const |
prints warning message
Definition at line 1696 of file engngm.C.
References __OOFEM_WARNING3, __OOFEM_WARNING4, giveClassName(), MAX_ERROR_MSG_LENGTH, and rank.
CommunicatorBuff* oofem::EngngModel::commBuff [protected] |
Common Communicator buffer.
Reimplemented in oofem::DarcyFlow.
Definition at line 293 of file engngm.h.
Referenced by oofem::DIIDynamic::DIIDynamic(), EngngModel(), oofem::LinearStatic::initializeFrom(), oofem::NonLinearStatic::initializeFrom(), oofem::NonLinearDynamic::initializeFrom(), oofem::NlDEIDynamic::initializeFrom(), oofem::LinearStatic::LinearStatic(), oofem::NlDEIDynamic::NlDEIDynamic(), oofem::NonLinearDynamic::NonLinearDynamic(), oofem::NonLinearStatic::NonLinearStatic(), and ~EngngModel().
ProblemCommunicatorMode oofem::EngngModel::commMode [protected] |
Communicator mode. Determines current strategy used.
Definition at line 278 of file engngm.h.
Referenced by oofem::DIIDynamic::DIIDynamic(), giveProblemCommMode(), oofem::DarcyFlow::initializeFrom(), oofem::LinearStatic::initializeFrom(), oofem::NonLinearStatic::initializeFrom(), oofem::NonLinearDynamic::initializeFrom(), oofem::NlDEIDynamic::initializeFrom(), oofem::LinearStatic::LinearStatic(), oofem::NlDEIDynamic::NlDEIDynamic(), oofem::NonLinearDynamic::NonLinearDynamic(), oofem::NonLinearStatic::NonLinearStatic(), and oofem::StokesFlow::StokesFlow().
ProblemCommunicator* oofem::EngngModel::communicator [protected] |
Reimplemented in oofem::DarcyFlow.
Definition at line 295 of file engngm.h.
Referenced by oofem::DIIDynamic::DIIDynamic(), EngngModel(), giveProblemCommunicator(), oofem::NonLinearDynamic::initializeCommMaps(), initializeCommMaps(), oofem::LinearStatic::initializeFrom(), oofem::NonLinearStatic::initializeFrom(), oofem::NonLinearDynamic::initializeFrom(), oofem::NlDEIDynamic::initializeFrom(), oofem::LinearStatic::LinearStatic(), oofem::NlDEIDynamic::NlDEIDynamic(), oofem::NonLinearDynamic::NonLinearDynamic(), oofem::NonLinearStatic::NonLinearStatic(), oofem::LinearStatic::solveYourself(), oofem::NlDEIDynamic::solveYourself(), updateSharedDofManagers(), updateSharedPrescribedDofManagers(), and ~EngngModel().
EngngModelContext* oofem::EngngModel::context [protected] |
Context.
Definition at line 256 of file engngm.h.
Referenced by EngngModel(), giveContext(), and ~EngngModel().
Domain context output mode.
Definition at line 236 of file engngm.h.
Referenced by EngngModel(), giveContextOutputMode(), oofem::StaggeredProblem::instanciateSlaveProblems(), setContextOutputMode(), and setUDContextOutputMode().
int oofem::EngngModel::contextOutputStep [protected] |
Definition at line 237 of file engngm.h.
Referenced by EngngModel(), giveContextOutputStep(), initializeFrom(), and setUDContextOutputMode().
std::string oofem::EngngModel::coreOutputFileName [protected] |
String with core output file name.
Definition at line 232 of file engngm.h.
Referenced by giveContextFile(), GiveDomainDataReader(), Instanciate_init(), and testContextFile().
TimeStep* oofem::EngngModel::currentStep [protected] |
Current time step.
Definition at line 218 of file engngm.h.
Referenced by oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::DIIDynamic::determineConstants(), EngngModel(), giveCurrentStep(), oofem::StaggeredProblem::giveDeltaT(), oofem::StationaryTransportProblem::giveNextStep(), oofem::DarcyFlow::giveNextStep(), oofem::DEIDynamic::giveNextStep(), oofem::IncrementalLinearStatic::giveNextStep(), oofem::LinearStatic::giveNextStep(), oofem::DIIDynamic::giveNextStep(), oofem::NonStationaryTransportProblem::giveNextStep(), oofem::EigenValueDynamic::giveNextStep(), oofem::LinearStability::giveNextStep(), oofem::CBS::giveNextStep(), oofem::StaggeredProblem::giveNextStep(), oofem::StokesFlow::giveNextStep(), oofem::SUPG::giveNextStep(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), oofem::NlDEIDynamic::giveNextStep(), oofem::NLTransientTransportProblem::giveUnknownComponent(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), restoreContext(), solveYourself(), oofem::StokesFlowVelocityHomogenization::solveYourselfAt(), and ~EngngModel().
std::string oofem::EngngModel::dataOutputFileName [protected] |
Path to output stream.
Definition at line 230 of file engngm.h.
Referenced by giveOutputBaseFileName(), and letOutputBaseFileNameBe().
ErrorEstimator* oofem::EngngModel::defaultErrEstimator [protected] |
Error estimator. Useful for adaptivity, or simply printing errors output.
Definition at line 268 of file engngm.h.
Referenced by EngngModel(), giveDomainErrorEstimator(), initializeFrom(), oofem::AdaptiveNonLinearStatic::solveYourselfAt(), oofem::AdaptiveLinearStatic::updateDomainLinks(), oofem::AdaptiveNonLinearStatic::updateDomainLinks(), oofem::AdaptiveLinearStatic::updateYourself(), updateYourself(), and ~EngngModel().
Definition at line 225 of file engngm.h.
Referenced by giveUnknownNumberingScheme().
AList< Domain >* oofem::EngngModel::domainList [protected] |
List of problem domains.
Definition at line 194 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), EngngModel(), giveDomain(), Instanciate_init(), instanciateDomains(), setDomain(), and ~EngngModel().
IntArray oofem::EngngModel::domainNeqs [protected] |
Number of equations per domain.
Definition at line 202 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::DarcyFlow::forceEquationNumbering(), oofem::SUPG::forceEquationNumbering(), forceEquationNumbering(), oofem::SUPG::giveNewEquationNumber(), giveNewEquationNumber(), giveNumberOfDomainEquations(), Instanciate_init(), restoreContext(), saveContext(), and setNumberOfEquations().
IntArray oofem::EngngModel::domainPrescribedNeqs [protected] |
Number of prescribed equations per domain.
Definition at line 204 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::DarcyFlow::forceEquationNumbering(), oofem::SUPG::forceEquationNumbering(), forceEquationNumbering(), oofem::SUPG::giveNewPrescribedEquationNumber(), giveNewPrescribedEquationNumber(), giveNumberOfPrescribedDomainEquations(), Instanciate_init(), restoreContext(), and saveContext().
int oofem::EngngModel::equationNumberingCompleted [protected] |
Equation numbering completed flag.
Definition at line 210 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), EngngModel(), oofem::DarcyFlow::forceEquationNumbering(), oofem::StokesFlow::forceEquationNumbering(), forceEquationNumbering(), oofem::CBS::giveNumberOfDomainEquations(), oofem::SUPG::giveNumberOfDomainEquations(), giveNumberOfDomainEquations(), oofem::CBS::giveNumberOfEquations(), oofem::SUPG::giveNumberOfEquations(), giveNumberOfEquations(), oofem::CBS::giveNumberOfPrescribedDomainEquations(), oofem::SUPG::giveNumberOfPrescribedDomainEquations(), giveNumberOfPrescribedDomainEquations(), oofem::CBS::giveNumberOfPrescribedEquations(), oofem::SUPG::giveNumberOfPrescribedEquations(), and giveNumberOfPrescribedEquations().
Export module manager.
Definition at line 240 of file engngm.h.
Referenced by EngngModel(), giveExportModuleManager(), oofem::EigenValueDynamic::terminate(), oofem::LinearStability::terminate(), and ~EngngModel().
bool oofem::EngngModel::force_load_rebalance_in_first_step [protected] |
Debug flag forcing load balancing after first step.
Definition at line 289 of file engngm.h.
Referenced by balanceLoad(), EngngModel(), and initializeFrom().
InitModuleManager* oofem::EngngModel::initModuleManager [protected] |
Initialization module manager.
Definition at line 242 of file engngm.h.
Referenced by EngngModel(), init(), instanciateYourself(), and ~EngngModel().
LoadBalancer* oofem::EngngModel::lb [protected] |
Load Balancer.
Definition at line 284 of file engngm.h.
Referenced by balanceLoad(), EngngModel(), oofem::AdaptiveNonLinearStatic::giveLoadBalancer(), oofem::NonLinearStatic::giveLoadBalancer(), oofem::NonLinearDynamic::giveLoadBalancer(), and ~EngngModel().
LoadBalancerMonitor* oofem::EngngModel::lbm [protected] |
Definition at line 285 of file engngm.h.
Referenced by balanceLoad(), EngngModel(), oofem::AdaptiveNonLinearStatic::giveLoadBalancerMonitor(), oofem::NonLinearStatic::giveLoadBalancerMonitor(), oofem::NonLinearDynamic::giveLoadBalancerMonitor(), and ~EngngModel().
bool oofem::EngngModel::loadBalancingFlag [protected] |
If set to true, load balancing is active.
Definition at line 287 of file engngm.h.
Referenced by EngngModel(), oofem::AdaptiveNonLinearStatic::giveLoadBalancer(), oofem::NonLinearStatic::giveLoadBalancer(), oofem::NonLinearDynamic::giveLoadBalancer(), oofem::AdaptiveNonLinearStatic::giveLoadBalancerMonitor(), oofem::NonLinearStatic::giveLoadBalancerMonitor(), oofem::NonLinearDynamic::giveLoadBalancerMonitor(), initializeFrom(), oofem::StaggeredProblem::solveYourself(), solveYourself(), and ~EngngModel().
EngngModel* oofem::EngngModel::master [protected] |
Master e-model; if defined receiver is in maintained (slave) mode.
Definition at line 254 of file engngm.h.
Referenced by EngngModel(), giveCurrentStep(), oofem::StaggeredProblem::giveNumberOfFirstStep(), giveNumberOfFirstStep(), giveNumberOfSteps(), oofem::StaggeredProblem::giveNumberOfTimeStepWhenIcApply(), giveNumberOfTimeStepWhenIcApply(), givePreviousStep(), giveSolutionStepWhenIcApply(), and ~EngngModel().
AList< MetaStep >* oofem::EngngModel::metaStepList [protected] |
List of problem metasteps.
Definition at line 214 of file engngm.h.
Referenced by EngngModel(), and ~EngngModel().
int oofem::EngngModel::ndomains [protected] |
Number of receiver domains.
Definition at line 192 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::CBS::CBS(), checkProblemConsistency(), oofem::DarcyFlow::DarcyFlow(), oofem::DEIDynamic::DEIDynamic(), oofem::DIIDynamic::DIIDynamic(), oofem::EigenValueDynamic::EigenValueDynamic(), EngngModel(), forceEquationNumbering(), giveDomain(), oofem::NonStationaryTransportProblem::giveDtTimeFunction(), oofem::StaggeredProblem::giveDtTimeFunction(), giveNumberOfDomains(), givePetscContext(), oofem::IncrementalLinearStatic::IncrementalLinearStatic(), oofem::StaggeredProblem::initializeFrom(), oofem::StationaryTransportProblem::initPetscContexts(), oofem::DarcyFlow::initPetscContexts(), oofem::EigenValueDynamic::initPetscContexts(), oofem::StokesFlow::initPetscContexts(), oofem::StructuralEngngModel::initPetscContexts(), oofem::SUPG::initPetscContexts(), oofem::NonLinearStatic::initPetscContexts(), oofem::NonLinearDynamic::initPetscContexts(), initStepIncrements(), Instanciate_init(), instanciateDomains(), instanciateYourself(), oofem::LinearStability::LinearStability(), oofem::LinearStatic::LinearStatic(), oofem::NlDEIDynamic::NlDEIDynamic(), oofem::NonLinearDynamic::NonLinearDynamic(), oofem::NonStationaryTransportProblem::NonStationaryTransportProblem(), printOutputAt(), restoreContext(), saveContext(), setDomain(), oofem::StaggeredProblem::StaggeredProblem(), oofem::StationaryTransportProblem::StationaryTransportProblem(), oofem::StokesFlow::StokesFlow(), oofem::SUPG::SUPG(), oofem::NonStationaryTransportProblem::updateYourself(), and updateYourself().
int oofem::EngngModel::nMetaSteps [protected] |
Number of meta steps.
Definition at line 212 of file engngm.h.
Referenced by EngngModel(), giveMetaStep(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), giveNumberOfMetaSteps(), oofem::LinearStability::initializeFrom(), initializeFrom(), instanciateDefaultMetaStep(), instanciateMetaSteps(), instanciateYourself(), restoreContext(), oofem::StaggeredProblem::solveYourself(), and solveYourself().
enum fMode oofem::EngngModel::nonLinFormulation [protected] |
Type of non linear formulation (total or updated formulation).
Definition at line 266 of file engngm.h.
Referenced by EngngModel(), oofem::NLTransientTransportProblem::giveFormulation(), oofem::NonLinearStatic::giveFormulation(), oofem::NonLinearDynamic::giveFormulation(), giveFormulation(), and initializeFrom().
int oofem::EngngModel::nonlocalExt [protected] |
Flag indicating if nonlocal extension active, which will cause data to be sent between shared elements before computing the internal forces.
Definition at line 298 of file engngm.h.
Referenced by oofem::DIIDynamic::DIIDynamic(), exchangeRemoteElementData(), oofem::NonLinearDynamic::initializeCommMaps(), initializeCommMaps(), oofem::NonLinearStatic::initializeFrom(), oofem::NonLinearDynamic::initializeFrom(), oofem::NlDEIDynamic::initializeFrom(), oofem::LinearStatic::LinearStatic(), oofem::NlDEIDynamic::NlDEIDynamic(), oofem::NonLinearDynamic::NonLinearDynamic(), oofem::NonLinearStatic::NonLinearStatic(), oofem::LinearStatic::solveYourself(), and oofem::NlDEIDynamic::solveYourself().
ProblemCommunicator* oofem::EngngModel::nonlocCommunicator [protected] |
NonLocal Communicator. Necessary when nonlocal constitutive models are used.
Definition at line 300 of file engngm.h.
Referenced by oofem::DIIDynamic::DIIDynamic(), EngngModel(), exchangeRemoteElementData(), giveProblemCommunicator(), oofem::NonLinearDynamic::initializeCommMaps(), initializeCommMaps(), oofem::NonLinearStatic::initializeFrom(), oofem::NonLinearDynamic::initializeFrom(), oofem::NlDEIDynamic::initializeFrom(), oofem::LinearStatic::LinearStatic(), oofem::NlDEIDynamic::NlDEIDynamic(), oofem::NonLinearDynamic::NonLinearDynamic(), oofem::NonLinearStatic::NonLinearStatic(), oofem::LinearStatic::solveYourself(), oofem::NlDEIDynamic::solveYourself(), and ~EngngModel().
int oofem::EngngModel::number [protected] |
int oofem::EngngModel::numberOfEquations [protected] |
Total number of equation in current time step.
Definition at line 198 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), EngngModel(), forceEquationNumbering(), oofem::SUPG::giveNumberOfDomainEquations(), oofem::SUPG::giveNumberOfEquations(), giveNumberOfEquations(), printYourself(), restoreContext(), saveContext(), and setNumberOfEquations().
int oofem::EngngModel::numberOfPrescribedEquations [protected] |
Total number or prescribed equations in current time step.
Definition at line 200 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), EngngModel(), forceEquationNumbering(), oofem::SUPG::giveNumberOfPrescribedDomainEquations(), oofem::SUPG::giveNumberOfPrescribedEquations(), giveNumberOfPrescribedEquations(), restoreContext(), and saveContext().
int oofem::EngngModel::numberOfSteps [protected] |
Total number of time steps.
Definition at line 196 of file engngm.h.
Referenced by oofem::EigenValueDynamic::EigenValueDynamic(), EngngModel(), giveNumberOfSteps(), oofem::IncrementalLinearStatic::initializeFrom(), oofem::EigenValueDynamic::initializeFrom(), oofem::LinearStability::initializeFrom(), initializeFrom(), instanciateDefaultMetaStep(), instanciateMetaSteps(), and oofem::LinearStability::LinearStability().
int oofem::EngngModel::numProcs [protected] |
Total number of collaborating processes.
Definition at line 274 of file engngm.h.
Referenced by giveNumberOfProcesses(), initParallel(), and instanciateYourself().
int oofem::EngngModel::nxfemman [protected] |
Number of Xfemmanagers.
Definition at line 264 of file engngm.h.
Referenced by EngngModel(), initializeFrom(), and instanciateYourself().
FILE* oofem::EngngModel::outputStream [protected] |
Output stream.
Definition at line 234 of file engngm.h.
Referenced by EngngModel(), giveOutputStream(), Instanciate_init(), instanciateYourself(), oofem::StructuralEngngModel::printReactionForces(), oofem::EigenValueDynamic::terminate(), oofem::LinearStability::terminate(), and ~EngngModel().
int oofem::EngngModel::parallelFlag [protected] |
Flag indicating that the receiver runs in parallel.
Definition at line 260 of file engngm.h.
Referenced by EngngModel(), initializeFrom(), isParallel(), setParallelMode(), and oofem::DarcyFlow::solveYourselfAt().
AList< PetscContext >* oofem::EngngModel::petscContextList [protected] |
List where PETSc contexts are stored.
Definition at line 325 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), EngngModel(), forceEquationNumbering(), givePetscContext(), oofem::StationaryTransportProblem::initPetscContexts(), oofem::DarcyFlow::initPetscContexts(), oofem::EigenValueDynamic::initPetscContexts(), oofem::StokesFlow::initPetscContexts(), oofem::StructuralEngngModel::initPetscContexts(), oofem::SUPG::initPetscContexts(), oofem::NonLinearStatic::initPetscContexts(), oofem::NonLinearDynamic::initPetscContexts(), and ~EngngModel().
problemMode oofem::EngngModel::pMode [protected] |
Domain mode.
Definition at line 245 of file engngm.h.
Referenced by EngngModel(), giveProblemMode(), oofem::StaggeredProblem::instanciateSlaveProblems(), and setProblemMode().
TimeStep* oofem::EngngModel::previousStep [protected] |
Previous time step.
Definition at line 220 of file engngm.h.
Referenced by oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), EngngModel(), oofem::StationaryTransportProblem::giveNextStep(), oofem::DarcyFlow::giveNextStep(), oofem::DEIDynamic::giveNextStep(), oofem::IncrementalLinearStatic::giveNextStep(), oofem::LinearStatic::giveNextStep(), oofem::DIIDynamic::giveNextStep(), oofem::NonStationaryTransportProblem::giveNextStep(), oofem::EigenValueDynamic::giveNextStep(), oofem::LinearStability::giveNextStep(), oofem::CBS::giveNextStep(), oofem::StaggeredProblem::giveNextStep(), oofem::StokesFlow::giveNextStep(), oofem::SUPG::giveNextStep(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), oofem::NlDEIDynamic::giveNextStep(), givePreviousStep(), oofem::NLTransientTransportProblem::giveUnknownComponent(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), restoreContext(), oofem::DIIDynamic::solveYourselfAt(), and ~EngngModel().
char oofem::EngngModel::processor_name[PROCESSOR_NAME_LENGTH] [protected] |
Processor name.
Definition at line 276 of file engngm.h.
Referenced by initParallel(), and instanciateYourself().
bool oofem::EngngModel::profileOpt [protected] |
Profile optimized numbering flag (using Sloan's algorithm).
Definition at line 208 of file engngm.h.
Referenced by EngngModel(), forceEquationNumbering(), and initializeFrom().
problemScale oofem::EngngModel::pScale [protected] |
Multiscale mode.
Definition at line 247 of file engngm.h.
Referenced by EngngModel(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), giveProblemScale(), and setProblemScale().
int oofem::EngngModel::rank [protected] |
Domain rank in a group of collaborating processes (0..groupSize-1).
Definition at line 272 of file engngm.h.
Referenced by error(), giveRank(), initParallel(), instanciateYourself(), and warning().
bool oofem::EngngModel::renumberFlag [protected] |
Renumbering flag (renumbers equations after each step, necessary if Dirichlet BCs change).
Definition at line 206 of file engngm.h.
Referenced by EngngModel(), oofem::StaggeredProblem::initializeFrom(), initializeFrom(), requiresEquationRenumbering(), oofem::SUPG::requiresUnknownsDictionaryUpdate(), resetRenumberFlag(), restoreContext(), saveContext(), and setRenumberFlag().
time_t oofem::EngngModel::startTime [protected] |
TimeStep* oofem::EngngModel::stepWhenIcApply [protected] |
Solution step when IC (initial conditions) apply.
Definition at line 216 of file engngm.h.
Referenced by EngngModel(), oofem::NonStationaryTransportProblem::giveSolutionStepWhenIcApply(), oofem::CBS::giveSolutionStepWhenIcApply(), oofem::StaggeredProblem::giveSolutionStepWhenIcApply(), oofem::SUPG::giveSolutionStepWhenIcApply(), giveSolutionStepWhenIcApply(), oofem::NonLinearDynamic::proceedStep(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::CBS::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), and ~EngngModel().
EngngModelTimer oofem::EngngModel::timer [protected] |
E-model timer.
Definition at line 258 of file engngm.h.
Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap(), oofem::NonLinearStatic::assemble(), oofem::NonLinearDynamic::assemble(), assemble(), assembleExtrapolatedForces(), assembleVectorFromActiveBC(), assembleVectorFromDofManagers(), assembleVectorFromElements(), balanceLoad(), forceEquationNumbering(), giveTimer(), oofem::AdaptiveNonLinearStatic::initializeAdaptiveFrom(), oofem::LinearStability::solveYourself(), oofem::StaggeredProblem::solveYourself(), solveYourself(), oofem::SUPG::solveYourselfAt(), terminateAnalysis(), and oofem::NonLinearDynamic::updateComponent().
AList< XfemManager >* oofem::EngngModel::xfemManagerList [protected] |
List of Xfemmanagers.
Definition at line 262 of file engngm.h.
Referenced by EngngModel(), and ~EngngModel().