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

#include <nltransienttransportproblem.h>

Inheritance diagram for oofem::NLTransientTransportProblem:
Collaboration diagram for oofem::NLTransientTransportProblem:

Public Member Functions

 NLTransientTransportProblem (int i, EngngModel *_master)
TimeStepgiveNextStep () override
 Returns next time step (next to current step) of receiver.
void solveYourselfAt (TimeStep *tStep) override
void updateYourself (TimeStep *tStep) override
double giveUnknownComponent (ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof) override
void initializeFrom (InputRecord &ir) override
const char * giveInputRecordName () const
const char * giveClassName () const override
 Returns class name of the receiver.
fMode giveFormulation () override
int giveUnknownDictHashIndx (ValueModeType mode, TimeStep *tStep) override
void updateDofUnknownsDictionary (DofManager *dman, TimeStep *tStep) override
int giveCurrentNumberOfIterations () override
Public Member Functions inherited from oofem::NonStationaryTransportProblem
 NonStationaryTransportProblem (int i, EngngModel *_master)
void solveYourselfAt (TimeStep *tStep) override
void updateYourself (TimeStep *tStep) override
double giveUnknownComponent (ValueModeType, TimeStep *tStep, Domain *d, Dof *dof) override
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
void updateDomainLinks () override
TimeStepgiveNextStep () override
 Returns next time step (next to current step) of receiver.
TimeStepgiveSolutionStepWhenIcApply (bool force=false) override
NumericalMethodgiveNumericalMethod (MetaStep *mStep) override
 Returns reference to receiver's numerical method.
void initializeFrom (InputRecord &ir) override
int checkConsistency () override
const char * giveInputRecordName () const
const char * giveClassName () const override
 Returns class name of the receiver.
fMode giveFormulation () override
int requiresUnknownsDictionaryUpdate () override
 Allows to change number of equations during solution.
bool requiresEquationRenumbering (TimeStep *tStep) override
int giveUnknownDictHashIndx (ValueModeType mode, TimeStep *tStep) override
FunctiongiveDtFunction ()
double giveDeltaT (int n)
double giveDiscreteTime (int n)
Public Member Functions inherited from oofem::StationaryTransportProblem
 StationaryTransportProblem (int i, EngngModel *_master)
void solveYourselfAt (TimeStep *tStep) override
void updateComponent (TimeStep *tStep, NumericalCmpn cmpn, Domain *d) override
void updateSolution (FloatArray &solutionVector, TimeStep *tStep, Domain *d) override
void updateInternalRHS (FloatArray &answer, TimeStep *tStep, Domain *d, FloatArray *eNorm) override
void updateMatrix (SparseMtrx &mat, TimeStep *tStep, Domain *d) override
double giveUnknownComponent (ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof) override
FieldPtr giveField (FieldType key, TimeStep *) override
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
void updateDomainLinks () override
TimeStepgiveNextStep () override
 Returns next time step (next to current step) of receiver.
NumericalMethodgiveNumericalMethod (MetaStep *mStep) override
 Returns reference to receiver's numerical method.
void initializeFrom (InputRecord &ir) override
int checkConsistency () override
const char * giveInputRecordName () const
const char * giveClassName () const override
 Returns class name of the receiver.
fMode giveFormulation () override
 EngngModel (int i, EngngModel *_master=NULL)
virtual ~EngngModel ()
 Destructor.
 EngngModel (const EngngModel &)=delete
EngngModeloperator= (const EngngModel &)=delete
DomaingiveDomain (int n)
void setDomain (int i, Domain *ptr, bool iDeallocateOld=true)
int giveNumberOfDomains ()
 Returns number of domains in problem.
const std::string & giveDescription () const
const time_t & giveStartTime ()
bool giveSuppressOutput () const
virtual ErrorEstimatorgiveDomainErrorEstimator (int n)
virtual MaterialInterfacegiveMaterialInterface (int n)
void setNumberOfEquations (int id, int neq)
FILE * giveOutputStream ()
 Returns file descriptor of output file.
std::string giveOutputBaseFileName ()
std::string giveReferenceFileName ()
void letOutputBaseFileNameBe (const std ::string &src)
ContextOutputMode giveContextOutputMode () const
int giveContextOutputStep () const
void setContextOutputMode (ContextOutputMode contextMode)
void setUDContextOutputMode (int cStep)
double giveDeltaT ()
 Returns time step size from the time step controlelr.
void setDeltaT (double dT)
 Returns time step size through the time step controlelr.
void setProblemMode (problemMode pmode)
void setParallelMode (bool newParallelFlag)
problemMode giveProblemMode () const
 Returns domain mode.
void setProblemScale (problemScale pscale)
problemScale giveProblemScale () const
 Returns scale in multiscale simulation.
virtual void setRenumberFlag ()
 Sets the renumber flag to true.
virtual void resetRenumberFlag ()
 Sets the renumber flag to false.
double giveSolutionStepTime ()
void giveAnalysisTime (int &rhrs, int &rmin, int &rsec, int &uhrs, int &umin, int &usec)
void terminateAnalysis ()
virtual void solveYourself ()
virtual void restartYourself (TimeStep *tS)
virtual void terminate (TimeStep *tStep)
virtual void doStepOutput (TimeStep *tStep)
void saveStepContext (TimeStep *tStep, ContextMode mode)
virtual void initializeYourself (TimeStep *tStep)
virtual int initializeAdaptive (int tStepNumber)
virtual int giveNumberOfDomainEquations (int di, const UnknownNumberingScheme &num)
virtual FieldPtr giveField (InternalStateType key, TimeStep *)
EngngModelgiveMasterEngngModel ()
 Returns the master engnmodel.
virtual double giveLoadLevel ()
 Returns the current load level.
virtual double giveEigenValue (int eigNum)
 Only relevant for eigen value analysis. Otherwise returns zero.
virtual void setActiveVector (int i)
 Only relevant for eigen value analysis. Otherwise does noting.
int updateSharedDofManagers (FloatArray &answer, const UnknownNumberingScheme &s, int ExchangeTag)
int exchangeRemoteElementData (int ExchangeTag)
MPI_Comm giveParallelComm ()
 Returns the communication object of reciever.
int packRemoteElementData (ProcessCommunicator &processComm)
int unpackRemoteElementData (ProcessCommunicator &processComm)
int packDofManagers (ArrayWithNumbering *src, ProcessCommunicator &processComm)
int unpackDofManagers (ArrayWithNumbering *dest, ProcessCommunicator &processComm)
ProblemCommunicatorgiveProblemCommunicator (EngngModelCommType t)
void initializeCommMaps (bool forceInit=false)
virtual int instanciateYourself (DataReader &dr, InputRecord &ir, const char *outFileName, const char *desc)
void Instanciate_init ()
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)
void initMetaStepAttributes (MetaStep *mStep)
MetaStepgiveCurrentMetaStep ()
 Returns current meta step.
virtual TimeStepgiveCurrentStep (bool force=false)
virtual void adaptTimeStep (double nIter)
virtual TimeStepgivePreviousStep (bool force=false)
virtual void preInitializeNextStep ()
 Does a pre-initialization of the next time step (implement if necessarry).
virtual int giveNumberOfFirstStep (bool force=false)
int giveNumberOfMetaSteps ()
 Return number of meta steps.
MetaStepgiveMetaStep (int i)
 Returns the i-th meta step.
int giveNumberOfSteps (bool force=false)
virtual double giveEndOfTimeOfInterest ()
 Returns end of time interest (time corresponding to end of time integration).
int giveNumberOfTimeStepWhenIcApply ()
 Returns the time step number, when initial conditions should apply.
ExportModuleManagergiveExportModuleManager ()
 Returns receiver's export module manager.
EngngModelTimergiveTimer ()
 Returns reference to receiver timer (EngngModelTimer).
virtual double giveInitialTime ()
 return time at the begining of analysis
virtual double giveFinalTime ()
virtual int giveNewEquationNumber (int domain, DofIDItem)
virtual int giveNewPrescribedEquationNumber (int domain, DofIDItem)
std::string giveContextFileName (int tStepNumber, int stepVersion) const
std::string giveDomainFileName (int domainNum, int domainSerNum) const
virtual void initForNewIteration (Domain *d, TimeStep *tStep, int iterationNumber, const FloatArray &solution)
virtual void initStepIncrements ()
virtual int forceEquationNumbering (int i)
virtual int forceEquationNumbering ()
virtual bool newDofHandling ()
virtual ParallelContextgiveParallelContext (int n)
virtual void initParallelContexts ()
virtual void assemble (SparseMtrx &answer, TimeStep *tStep, const MatrixAssembler &ma, const UnknownNumberingScheme &s, Domain *domain)
virtual void assemble (SparseMtrx &answer, TimeStep *tStep, const MatrixAssembler &ma, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, Domain *domain)
void assembleVector (FloatArray &answer, TimeStep *tStep, const VectorAssembler &va, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL)
void assembleVectorFromDofManagers (FloatArray &answer, TimeStep *tStep, const VectorAssembler &va, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL)
void assembleVectorFromElements (FloatArray &answer, TimeStep *tStep, const VectorAssembler &va, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL)
void assembleVectorFromBC (FloatArray &answer, TimeStep *tStep, const VectorAssembler &va, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL)
void assembleExtrapolatedForces (FloatArray &answer, TimeStep *tStep, CharType type, Domain *domain)
void assemblePrescribedExtrapolatedForces (FloatArray &answer, TimeStep *tStep, CharType type, Domain *domain)
virtual int checkProblemConsistency ()
virtual void init ()
virtual void postInitialize ()
virtual void printOutputAt (FILE *file, TimeStep *tStep)
virtual void printOutputAt (FILE *file, TimeStep *tStep, const IntArray &nodeSets, const IntArray &elementSets)
void outputNodes (FILE *file, Domain &domain, TimeStep *tStep, int setNum)
void outputElements (FILE *file, Domain &domain, TimeStep *tStep, int setNum)
void printYourself ()
 Prints state of receiver. Useful for debugging.
virtual void printDofOutputAt (FILE *stream, Dof *iDof, TimeStep *tStep)
virtual int useNonlocalStiffnessOption ()
 Returns nonzero if nonlocal stiffness option activated.
bool isParallel () const
 Returns true if receiver in parallel mode.
int giveRank () const
 Returns domain rank in a group of collaborating processes (0..groupSize-1).
int giveNumberOfProcesses () const
 Returns the number of collaborating processes.
EngngModelContextgiveContext ()
 Context requesting service.
virtual int giveNumberOfSlaveProblems ()
 Returns number of slave problems.
virtual EngngModelgiveSlaveProblem (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, DataStream &buff, int packUnpackType)
virtual void balanceLoad (TimeStep *tStep)
virtual LoadBalancergiveLoadBalancer ()
virtual LoadBalancerMonitorgiveLoadBalancerMonitor ()
void initParallel ()
 Request domain rank and problem size.
EngngModelgiveEngngModel ()
 Returns reference to itself -> required by communicator.h.
virtual bool isElementActivated (int elemNum)
virtual bool isElementActivated (Element *e)
TimeStepControllergiveTimeStepController ()
 Returns the time step controller.
virtual void drawYourself (oofegGraphicContext &gc)
virtual void drawElements (oofegGraphicContext &gc)
virtual void drawNodes (oofegGraphicContext &gc)
virtual void showSparseMtrxStructure (int type, oofegGraphicContext &gc, TimeStep *tStep)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Protected Types

enum  nlttp_ModeType { nrsolverModifiedNRM , nrsolverFullNRM , nrsolverAccelNRM }
Protected Types inherited from oofem::EngngModel
enum  {
  InternalForcesExchangeTag , MassExchangeTag , LoadExchangeTag , ReactionExchangeTag ,
  RemoteElementExchangeTag
}
 Message tags. More...

Protected Member Functions

void updateInternalState (TimeStep *tStep) override
void applyIC (TimeStep *tStep) override
void createPreviousSolutionInDofUnknownsDictionary (TimeStep *tStep)
void assembleAlgorithmicPartOfRhs (FloatArray &rhs, const UnknownNumberingScheme &s, TimeStep *tStep) override
Protected Member Functions inherited from oofem::NonStationaryTransportProblem
virtual void assembleDirichletBcRhsVector (FloatArray &answer, TimeStep *tStep, ValueModeType mode, const UnknownNumberingScheme &s, Domain *d)
virtual void copyUnknownsInDictionary (ValueModeType mode, TimeStep *fromTime, TimeStep *toTime)
virtual void packMigratingData (TimeStep *tStep)
virtual void unpackMigratingData (TimeStep *tStep)

Protected Attributes

double rtol = 0.
int nsmax = 0
nlttp_ModeType NR_Mode = nrsolverModifiedNRM
int MANRMSteps = 0
int currentIterations = 0
Protected Attributes inherited from oofem::NonStationaryTransportProblem
StateCounterType internalVarUpdateStamp
LinSystSolverType solverType = ST_Direct
std ::unique_ptr< SparseLinearSystemNMlinSolver
FloatArray bcRhs
 Right hand side vector from boundary conditions.
double initT = 0.
 Initial time from which the computation runs. Default is zero.
double deltaT = 0.
 Length of time step.
double alpha = 0.
int lumpedCapacityStab = 0
 If set then stabilization using lumped capacity will be used.
int dtFunction = 0
 Associated time function for time step increment.
FloatArray discreteTimes
 Specified times where the problem is solved.
bool changingProblemSize = false
 Determines if there are change in the problem size (no application/removal of Dirichlet boundary conditions).
Protected Attributes inherited from oofem::StationaryTransportProblem
SparseMtrxType sparseMtrxType = SMT_Skyline
std ::unique_ptr< PrimaryFieldUnknownsField
 This field stores solution vector. For fixed size of problem, the PrimaryField is used, for growing/decreasing size, DofDistributedPrimaryField applies.
std ::unique_ptr< SparseMtrxconductivityMatrix
FloatArray internalForces
FloatArray eNorm
std::unique_ptr< SparseNonLinearSystemNMnMethod
 Numerical method used to solve the problem.
bool keepTangent = false
Protected Attributes inherited from oofem::EngngModel
int ndomains
 Number of receiver domains.
std ::vector< std ::unique_ptr< 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.
std ::vector< MetaStepmetaStepList
 List of problem metasteps.
std ::unique_ptr< TimeStepstepWhenIcApply
 Solution step when IC (initial conditions) apply.
std ::unique_ptr< TimeStepcurrentStep
 Current time step.
std ::unique_ptr< TimeSteppreviousStep
 Previous time step.
int number
 Receivers id.
std::string dataOutputFileName
 Path to output stream.
std::string coreOutputFileName
 String with core output file name.
FILE * outputStream
 Output stream.
std::string referenceFileName
 String with reference file name.
ContextOutputMode contextOutputMode
 Domain context output mode.
int contextOutputStep
ExportModuleManager exportModuleManager
 Export module manager.
InitModuleManager initModuleManager
 Initialization module manager.
MonitorManager monitorManager
 Monitor manager.
problemMode pMode
 Domain mode.
problemScale pScale
 Multiscale mode.
time_t startTime
 Solution start time.
EngngModelmaster
 Master e-model; if defined receiver is in maintained (slave) mode.
EngngModelContextcontext
 Context.
EngngModelTimer timer
 E-model timer.
int parallelFlag
 Flag indicating that the receiver runs in parallel.
enum fMode nonLinFormulation
 Type of non linear formulation (total or updated formulation).
std::unique_ptr< ErrorEstimatordefaultErrEstimator
 Error estimator. Useful for adaptivity, or simply printing errors output.
std::unique_ptr< TimeStepControllertimeStepController
 Time Step controller is responsible for collecting data from analysis, elements, and materials, and select the appropriate timestep size for the next step, or reduce the step in case of convergence problems.
int rank
 Domain rank in a group of collaborating processes (0..groupSize-1).
int numProcs
 Total number of collaborating processes.
int nonlocalExt
 Flag indicating if nonlocal extension active, which will cause data to be sent between shared elements before computing the internal forces.
char processor_name [PROCESSOR_NAME_LENGTH]
 Processor name.
MPI_Comm comm
 Communication object for this engineering model.
std::unique_ptr< LoadBalancerlb
 Load Balancer.
std::unique_ptr< LoadBalancerMonitorlbm
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.
CommunicatorBuffcommBuff
 Common Communicator buffer.
ProblemCommunicatorcommunicator
 Communicator.
ProblemCommunicatornonlocCommunicator
 NonLocal Communicator. Necessary when nonlocal constitutive models are used.
std ::vector< ParallelContextparallelContextList
 List where parallel contexts are stored.
bool suppressOutput
 Flag for suppressing output to file.
std::string simulationDescription

Additional Inherited Members

Public Types inherited from oofem::EngngModel
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 }

Detailed Description

This class represents nonlinear transient transport problem. The problem can be growing/decreasing, signalized by flag "changingproblemsize" in the problem description. The solution is stored in UnknownsField, which can obtain/ project solution from/to DOFs (nodes). If the problem keeps the same equation numbers, solution is taken from UnknownsField without any projection, which is more efficient. See the matlibmanual for solution strategy of balance equations and the solution algorithm.

Todo
Documentation errors (there is no "UnknownsField" used here).

Definition at line 59 of file nltransienttransportproblem.h.

Member Enumeration Documentation

◆ nlttp_ModeType

Enumerator
nrsolverModifiedNRM 
nrsolverFullNRM 
nrsolverAccelNRM 

Definition at line 62 of file nltransienttransportproblem.h.

Constructor & Destructor Documentation

◆ NLTransientTransportProblem()

oofem::NLTransientTransportProblem::NLTransientTransportProblem ( int i,
EngngModel * _master = nullptr )

Member Function Documentation

◆ applyIC()

void oofem::NLTransientTransportProblem::applyIC ( TimeStep * tStep)
overrideprotectedvirtual

This function is normally called at the first time to project initial conditions to previous (0^th) solution vector.

Parameters
tStepPrevious solution step.

Reimplemented from oofem::NonStationaryTransportProblem.

Definition at line 271 of file nltransienttransportproblem.C.

References oofem::EngngModel::giveDomain(), oofem::Domain::giveElements(), oofem::TransportElement::updateInternalState(), and oofem::Element::updateYourself().

Referenced by solveYourselfAt().

◆ assembleAlgorithmicPartOfRhs()

◆ createPreviousSolutionInDofUnknownsDictionary()

void oofem::NLTransientTransportProblem::createPreviousSolutionInDofUnknownsDictionary ( TimeStep * tStep)
protected

◆ giveClassName()

const char * oofem::NLTransientTransportProblem::giveClassName ( ) const
inlineoverridevirtual

Returns class name of the receiver.

Implements oofem::EngngModel.

Definition at line 82 of file nltransienttransportproblem.h.

◆ giveCurrentNumberOfIterations()

int oofem::NLTransientTransportProblem::giveCurrentNumberOfIterations ( )
inlineoverridevirtual

Returns number of iterations that was required to reach equilibrium - used for adaptive step length in staggered problem

Reimplemented from oofem::EngngModel.

Definition at line 87 of file nltransienttransportproblem.h.

References currentIterations.

◆ giveFormulation()

fMode oofem::NLTransientTransportProblem::giveFormulation ( )
inlineoverridevirtual

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 from oofem::EngngModel.

Definition at line 83 of file nltransienttransportproblem.h.

References oofem::EngngModel::nonLinFormulation.

◆ giveInputRecordName()

const char * oofem::NLTransientTransportProblem::giveInputRecordName ( ) const
inline

◆ giveNextStep()

TimeStep * oofem::NLTransientTransportProblem::giveNextStep ( )
overridevirtual

Returns next time step (next to current step) of receiver.

Reimplemented from oofem::EngngModel.

Definition at line 76 of file nltransienttransportproblem.C.

References oofem::NonStationaryTransportProblem::alpha, oofem::EngngModel::currentStep, and oofem::EngngModel::previousStep.

◆ giveUnknownComponent()

double oofem::NLTransientTransportProblem::giveUnknownComponent ( ValueModeType ,
TimeStep * ,
Domain * ,
Dof *  )
overridevirtual

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.

See also
Dof::giveUnknown
Todo
Shouldn't it be enough to just run this?

Reimplemented from oofem::EngngModel.

Definition at line 215 of file nltransienttransportproblem.C.

References oofem::Dof::__giveEquationNumber(), oofem::NonStationaryTransportProblem::alpha, oofem::EngngModel::giveCurrentStep(), oofem::Dof::giveDofID(), oofem::EngngModel::givePreviousStep(), oofem::TimeStep::giveTargetTime(), giveUnknownDictHashIndx(), oofem::Dof::giveUnknowns(), oofem::TimeStep::isIcApply(), OOFEM_ERROR, oofem::NonStationaryTransportProblem::requiresUnknownsDictionaryUpdate(), and oofem::StationaryTransportProblem::UnknownsField.

◆ giveUnknownDictHashIndx()

int oofem::NLTransientTransportProblem::giveUnknownDictHashIndx ( ValueModeType mode,
TimeStep * tStep )
overridevirtual

This method is responsible for computing unique dictionary id (ie hash value) from given 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 from oofem::EngngModel.

Definition at line 316 of file nltransienttransportproblem.C.

References oofem::TimeStep::giveNumber(), oofem::TimeStep::giveTargetTime(), and OOFEM_ERROR.

Referenced by giveUnknownComponent().

◆ initializeFrom()

void oofem::NLTransientTransportProblem::initializeFrom ( InputRecord & ir)
overridevirtual

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 from oofem::EngngModel.

Definition at line 55 of file nltransienttransportproblem.C.

References _IFT_NLTransientTransportProblem_manrmsteps, _IFT_NLTransientTransportProblem_nsmax, _IFT_NLTransientTransportProblem_rtol, IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, MANRMSteps, NR_Mode, nrsolverAccelNRM, nrsolverModifiedNRM, nsmax, and rtol.

◆ solveYourselfAt()

void oofem::NLTransientTransportProblem::solveYourselfAt ( TimeStep * tStep)
overridevirtual

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 from oofem::EngngModel.

Definition at line 86 of file nltransienttransportproblem.C.

References oofem::FloatArray::add(), oofem::NonStationaryTransportProblem::alpha, applyIC(), oofem::assemble(), assembleAlgorithmicPartOfRhs(), oofem::EngngModel::assembleVectorFromDofManagers(), oofem::EngngModel::assembleVectorFromElements(), oofem::NonStationaryTransportProblem::changingProblemSize, oofem::classFactory, oofem::FloatArray::computeNorm(), oofem::StationaryTransportProblem::conductivityMatrix, oofem::NonStationaryTransportProblem::copyUnknownsInDictionary(), currentIterations, oofem::EngngModel::giveCurrentMetaStep(), oofem::EngngModel::giveDomain(), oofem::TimeStep::giveMetaStepNumber(), oofem::TimeStep::giveNumber(), oofem::EngngModel::giveNumberOfDomainEquations(), oofem::NonStationaryTransportProblem::giveNumericalMethod(), oofem::TimeStep::givePreviousStep(), oofem::TimeStep::giveSolutionStateCounter(), oofem::TimeStep::giveTargetTime(), oofem::TimeStep::giveTimeIncrement(), oofem::TimeStep::incrementStateCounter(), oofem::TimeStep::isTheFirstStep(), oofem::NonStationaryTransportProblem::linSolver, oofem::NonStationaryTransportProblem::lumpedCapacityStab, MANRMSteps, NR_Mode, nrsolverAccelNRM, nrsolverFullNRM, nsmax, OOFEM_ERROR, OOFEM_LOG_INFO, OOFEM_LOG_RELEVANT, oofem::FloatArray::resize(), rtol, oofem::StationaryTransportProblem::sparseMtrxType, oofem::EngngModel::stepWhenIcApply, oofem::StationaryTransportProblem::UnknownsField, updateInternalState(), and oofem::FloatArray::zero().

◆ updateDofUnknownsDictionary()

void oofem::NLTransientTransportProblem::updateDofUnknownsDictionary ( DofManager * ,
TimeStep *  )
overridevirtual

Updates necessary values in Dofs unknown dictionaries.

See also
EngngModel::requiresUnknownsDictionaryUpdate
Dof::updateUnknownsDictionary

Reimplemented from oofem::EngngModel.

Definition at line 332 of file nltransienttransportproblem.C.

References oofem::FloatArray::at(), and oofem::StationaryTransportProblem::UnknownsField.

Referenced by updateInternalState().

◆ updateInternalState()

void oofem::NLTransientTransportProblem::updateInternalState ( TimeStep * tStep)
overrideprotectedvirtual

Updates IP values on elements.

Parameters
tStepSolution step.

Reimplemented from oofem::NonStationaryTransportProblem.

Definition at line 352 of file nltransienttransportproblem.C.

References oofem::EngngModel::domainList, oofem::NonStationaryTransportProblem::requiresUnknownsDictionaryUpdate(), and updateDofUnknownsDictionary().

Referenced by solveYourselfAt().

◆ updateYourself()

void oofem::NLTransientTransportProblem::updateYourself ( TimeStep * tStep)
overridevirtual

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 from oofem::EngngModel.

Definition at line 303 of file nltransienttransportproblem.C.

References oofem::NonStationaryTransportProblem::alpha, oofem::TimeStep::giveIntrinsicTime(), oofem::TimeStep::giveTargetTime(), oofem::TimeStep::giveTimeIncrement(), and oofem::TimeStep::setIntrinsicTime().

Member Data Documentation

◆ currentIterations

int oofem::NLTransientTransportProblem::currentIterations = 0
protected

Definition at line 68 of file nltransienttransportproblem.h.

Referenced by giveCurrentNumberOfIterations(), and solveYourselfAt().

◆ MANRMSteps

int oofem::NLTransientTransportProblem::MANRMSteps = 0
protected

Definition at line 67 of file nltransienttransportproblem.h.

Referenced by initializeFrom(), and solveYourselfAt().

◆ NR_Mode

nlttp_ModeType oofem::NLTransientTransportProblem::NR_Mode = nrsolverModifiedNRM
protected

Definition at line 66 of file nltransienttransportproblem.h.

Referenced by initializeFrom(), and solveYourselfAt().

◆ nsmax

int oofem::NLTransientTransportProblem::nsmax = 0
protected

Definition at line 65 of file nltransienttransportproblem.h.

Referenced by initializeFrom(), and solveYourselfAt().

◆ rtol

double oofem::NLTransientTransportProblem::rtol = 0.
protected

Definition at line 64 of file nltransienttransportproblem.h.

Referenced by initializeFrom(), and solveYourselfAt().


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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011