|
OOFEM 3.0
|
#include <nonstationarytransportproblem.h>
Public Member Functions | |
| 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 |
| TimeStep * | giveNextStep () override |
| Returns next time step (next to current step) of receiver. | |
| TimeStep * | giveSolutionStepWhenIcApply (bool force=false) override |
| NumericalMethod * | giveNumericalMethod (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 |
| Function * | giveDtFunction () |
| 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 |
| TimeStep * | giveNextStep () override |
| Returns next time step (next to current step) of receiver. | |
| NumericalMethod * | giveNumericalMethod (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 | |
| EngngModel & | operator= (const EngngModel &)=delete |
| Domain * | giveDomain (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 ErrorEstimator * | giveDomainErrorEstimator (int n) |
| virtual MaterialInterface * | giveMaterialInterface (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 *) |
| EngngModel * | giveMasterEngngModel () |
| 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) |
| virtual int | giveCurrentNumberOfIterations () |
| 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) |
| ProblemCommunicator * | giveProblemCommunicator (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) |
| MetaStep * | giveCurrentMetaStep () |
| Returns current meta step. | |
| virtual TimeStep * | giveCurrentStep (bool force=false) |
| virtual void | adaptTimeStep (double nIter) |
| virtual TimeStep * | givePreviousStep (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. | |
| MetaStep * | giveMetaStep (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. | |
| ExportModuleManager * | giveExportModuleManager () |
| Returns receiver's export module manager. | |
| EngngModelTimer * | giveTimer () |
| 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 void | updateDofUnknownsDictionary (DofManager *, TimeStep *) |
| virtual bool | newDofHandling () |
| virtual ParallelContext * | giveParallelContext (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. | |
| 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, DataStream &buff, int packUnpackType) |
| virtual void | balanceLoad (TimeStep *tStep) |
| virtual LoadBalancer * | giveLoadBalancer () |
| virtual LoadBalancerMonitor * | giveLoadBalancerMonitor () |
| void | initParallel () |
| Request domain rank and problem size. | |
| EngngModel * | giveEngngModel () |
| Returns reference to itself -> required by communicator.h. | |
| virtual bool | isElementActivated (int elemNum) |
| virtual bool | isElementActivated (Element *e) |
| TimeStepController * | giveTimeStepController () |
| 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 Member Functions | |
| virtual void | assembleAlgorithmicPartOfRhs (FloatArray &rhs, const UnknownNumberingScheme &s, TimeStep *tStep) |
| virtual void | applyIC (TimeStep *tStep) |
| 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 | updateInternalState (TimeStep *tStep) |
| virtual void | packMigratingData (TimeStep *tStep) |
| virtual void | unpackMigratingData (TimeStep *tStep) |
Protected Attributes | |
| StateCounterType | internalVarUpdateStamp |
| LinSystSolverType | solverType = ST_Direct |
| std ::unique_ptr< SparseLinearSystemNM > | linSolver |
| 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< PrimaryField > | UnknownsField |
| This field stores solution vector. For fixed size of problem, the PrimaryField is used, for growing/decreasing size, DofDistributedPrimaryField applies. | |
| std ::unique_ptr< SparseMtrx > | conductivityMatrix |
| FloatArray | internalForces |
| FloatArray | eNorm |
| std::unique_ptr< SparseNonLinearSystemNM > | nMethod |
| 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< MetaStep > | metaStepList |
| List of problem metasteps. | |
| std ::unique_ptr< TimeStep > | stepWhenIcApply |
| Solution step when IC (initial conditions) apply. | |
| std ::unique_ptr< TimeStep > | currentStep |
| Current time step. | |
| std ::unique_ptr< TimeStep > | previousStep |
| 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. | |
| 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. | |
| enum fMode | nonLinFormulation |
| Type of non linear formulation (total or updated formulation). | |
| std::unique_ptr< ErrorEstimator > | defaultErrEstimator |
| Error estimator. Useful for adaptivity, or simply printing errors output. | |
| std::unique_ptr< TimeStepController > | timeStepController |
| 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< LoadBalancer > | lb |
| Load Balancer. | |
| std::unique_ptr< 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. | |
| CommunicatorBuff * | commBuff |
| Common Communicator buffer. | |
| ProblemCommunicator * | communicator |
| Communicator. | |
| ProblemCommunicator * | nonlocCommunicator |
| NonLocal Communicator. Necessary when nonlocal constitutive models are used. | |
| std ::vector< ParallelContext > | parallelContextList |
| 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 } |
| Protected Types inherited from oofem::EngngModel | |
| enum | { InternalForcesExchangeTag , MassExchangeTag , LoadExchangeTag , ReactionExchangeTag , RemoteElementExchangeTag } |
| Message tags. More... | |
This class represents linear nonstationary transport problem.
Definition at line 104 of file nonstationarytransportproblem.h.
| oofem::NonStationaryTransportProblem::NonStationaryTransportProblem | ( | int | i, |
| EngngModel * | _master = nullptr ) |
Definition at line 90 of file nonstationarytransportproblem.C.
References oofem::StationaryTransportProblem::StationaryTransportProblem().
Referenced by oofem::NLTransientTransportProblem::NLTransientTransportProblem().
|
protectedvirtual |
This function is normally called at the first time to project initial conditions to previous (0^th) solution vector.
| tStep | Previous solution step. |
Reimplemented in oofem::NLTransientTransportProblem.
Definition at line 552 of file nonstationarytransportproblem.C.
References oofem::FloatArray::at(), oofem::CemhydMat::averageTemperature(), changingProblemSize, oofem::CemhydMat::clearWeightTemperatureProductVolume(), oofem::Domain::giveDofManagers(), oofem::EngngModel::giveDomain(), oofem::Domain::giveElements(), oofem::TransportElement::giveMaterial(), oofem::Domain::giveMaterials(), oofem::EngngModel::giveNumberOfDomainEquations(), oofem::CemhydMat::initMaterial(), OOFEM_LOG_INFO, oofem::FloatArray::resize(), oofem::CemhydMat::storeWeightTemperatureProductVolume(), oofem::StationaryTransportProblem::UnknownsField, oofem::TransportElement::updateInternalState(), oofem::Element::updateYourself(), and oofem::FloatArray::zero().
Referenced by solveYourselfAt().
|
protectedvirtual |
Reimplemented in oofem::NLTransientTransportProblem.
Definition at line 514 of file nonstationarytransportproblem.C.
References oofem::FloatMatrix::add(), alpha, oofem::FloatArray::assemble(), oofem::FloatArray::beProductOf(), oofem::Element::computeVectorOf(), oofem::Element_remote, oofem::Element::giveCharacteristicMatrix(), oofem::EngngModel::giveDomain(), oofem::Domain::giveElement(), oofem::Element::giveLocationArray(), oofem::Domain::giveNumberOfElements(), oofem::Element::giveParallelMode(), oofem::TimeStep::giveTimeIncrement(), oofem::FloatMatrix::isNotEmpty(), lumpedCapacityStab, and oofem::FloatMatrix::times().
Referenced by solveYourselfAt().
|
protectedvirtual |
Assembles part of RHS due to Dirichlet boundary conditions.
| answer | Global vector where the contribution will be added. |
| tStep | Solution step. |
| mode | Mode of result. |
| s | A map of non-default equation numbering if required. |
| d | Domain. |
Definition at line 632 of file nonstationarytransportproblem.C.
References oofem::FloatMatrix::add(), alpha, oofem::FloatArray::assemble(), oofem::FloatArray::beProductOf(), oofem::Element::computeVectorOfPrescribed(), oofem::FloatArray::containsOnlyZeroes(), oofem::Element::giveCharacteristicMatrix(), oofem::Domain::giveElement(), oofem::Element::giveElementDofIDMask(), oofem::Element::giveLocationArray(), oofem::Domain::giveNumberOfElements(), oofem::TimeStep::giveTimeIncrement(), lumpedCapacityStab, oofem::FloatArray::negated(), and oofem::FloatMatrix::times().
Referenced by solveYourselfAt().
|
overridevirtual |
Allows programmer to test some receiver's internal data, before computation begins.
Reimplemented from oofem::EngngModel.
Definition at line 473 of file nonstationarytransportproblem.C.
References oofem::EngngModel::giveDomain(), oofem::Domain::giveElements(), and OOFEM_WARNING.
|
protectedvirtual |
Copy unknowns in DOF's from previous to current position.
| mode | What the unknown describes (increment, total value etc.). |
| fromTime | From which time step to obtain value. |
| toTime | To which time to copy. |
Definition at line 421 of file nonstationarytransportproblem.C.
References oofem::Domain::giveDofManagers(), and oofem::EngngModel::giveDomain().
Referenced by oofem::NLTransientTransportProblem::solveYourselfAt(), and solveYourselfAt().
|
inlineoverridevirtual |
Returns class name of the receiver.
Implements oofem::EngngModel.
Definition at line 158 of file nonstationarytransportproblem.h.
| double oofem::NonStationaryTransportProblem::giveDeltaT | ( | int | n | ) |
Returns the time step length for given step number n, initial step is number 0.
Definition at line 215 of file nonstationarytransportproblem.C.
References deltaT, discreteTimes, giveDiscreteTime(), and giveDtFunction().
Referenced by giveNextStep(), and giveSolutionStepWhenIcApply().
| double oofem::NonStationaryTransportProblem::giveDiscreteTime | ( | int | n | ) |
Returns time for time step number n (array discreteTimes must be specified)
Definition at line 229 of file nonstationarytransportproblem.C.
References discreteTimes, initT, and OOFEM_ERROR.
Referenced by giveDeltaT().
| Function * oofem::NonStationaryTransportProblem::giveDtFunction | ( | ) |
Returns time function for time step increment. Used time function should provide step lengths as function of step number. Initial step with number 0 is considered as [ -dt(0), 0 ], first step is [ 0, dt(1) ], ...
Definition at line 204 of file nonstationarytransportproblem.C.
References dtFunction, and oofem::EngngModel::giveDomain().
Referenced by giveDeltaT().
|
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 159 of file nonstationarytransportproblem.h.
References oofem::TL.
|
inline |
Definition at line 157 of file nonstationarytransportproblem.h.
References _IFT_NonStationaryTransportProblem_Name.
|
overridevirtual |
Returns next time step (next to current step) of receiver.
Reimplemented from oofem::EngngModel.
Definition at line 244 of file nonstationarytransportproblem.C.
References oofem::EngngModel::currentStep, giveDeltaT(), oofem::EngngModel::giveNumberOfFirstStep(), giveSolutionStepWhenIcApply(), initT, and oofem::EngngModel::previousStep.
|
overridevirtual |
Returns reference to receiver's numerical method.
Reimplemented from oofem::EngngModel.
Definition at line 95 of file nonstationarytransportproblem.C.
References oofem::classFactory, oofem::EngngModel::giveDomain(), linSolver, OOFEM_ERROR, and solverType.
Referenced by oofem::NLTransientTransportProblem::solveYourselfAt(), solveYourselfAt(), and updateDomainLinks().
|
overridevirtual |
Returns the solution step when Initial Conditions (IC) apply.
| force | when set to true then receiver reply is returned instead of master (default) |
Reimplemented from oofem::EngngModel.
Definition at line 188 of file nonstationarytransportproblem.C.
References giveDeltaT(), oofem::EngngModel::giveNumberOfFirstStep(), oofem::EngngModel::giveNumberOfTimeStepWhenIcApply(), initT, oofem::EngngModel::master, and oofem::EngngModel::stepWhenIcApply.
Referenced by giveNextStep(), and solveYourselfAt().
|
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.
Reimplemented from oofem::EngngModel.
Definition at line 153 of file nonstationarytransportproblem.C.
References oofem::Dof::__giveEquationNumber(), oofem::Dof::giveDofID(), giveUnknownDictHashIndx(), oofem::Dof::giveUnknowns(), OOFEM_ERROR, requiresUnknownsDictionaryUpdate(), and oofem::StationaryTransportProblem::UnknownsField.
|
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 501 of file nonstationarytransportproblem.C.
References OOFEM_ERROR.
Referenced by giveUnknownComponent().
|
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 109 of file nonstationarytransportproblem.C.
References _IFT_EngngModel_lstype, _IFT_NonStationaryTransportProblem_alpha, _IFT_NonStationaryTransportProblem_changingproblemsize, _IFT_NonStationaryTransportProblem_deltat, _IFT_NonStationaryTransportProblem_deltatfunction, _IFT_NonStationaryTransportProblem_initt, _IFT_NonStationaryTransportProblem_lumpedcapa, _IFT_NonStationaryTransportProblem_prescribedtimes, alpha, changingProblemSize, deltaT, discreteTimes, dtFunction, oofem::InputRecord::hasField(), initT, IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, lumpedCapacityStab, solverType, and oofem::StationaryTransportProblem::UnknownsField.
|
inlineoverridevirtual |
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 from oofem::EngngModel.
Definition at line 163 of file nonstationarytransportproblem.h.
References changingProblemSize.
|
inlineoverridevirtual |
Allows to change number of equations during solution.
Reimplemented from oofem::EngngModel.
Definition at line 162 of file nonstationarytransportproblem.h.
References changingProblemSize.
Referenced by oofem::NLTransientTransportProblem::createPreviousSolutionInDofUnknownsDictionary(), oofem::NLTransientTransportProblem::giveUnknownComponent(), giveUnknownComponent(), oofem::NLTransientTransportProblem::updateInternalState(), and updateInternalState().
|
overridevirtual |
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. |
| ContextIOERR | exception if error encountered. |
Reimplemented from oofem::EngngModel.
Definition at line 465 of file nonstationarytransportproblem.C.
References oofem::StationaryTransportProblem::UnknownsField.
|
overridevirtual |
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.
| stream | Context stream. |
| mode | Determines amount of info in stream. |
| ContextIOERR | If error encountered. |
Reimplemented from oofem::EngngModel.
Definition at line 457 of file nonstationarytransportproblem.C.
References oofem::StationaryTransportProblem::UnknownsField.
|
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 270 of file nonstationarytransportproblem.C.
References alpha, applyIC(), oofem::assemble(), assembleAlgorithmicPartOfRhs(), assembleDirichletBcRhsVector(), oofem::EngngModel::assembleVectorFromDofManagers(), oofem::EngngModel::assembleVectorFromElements(), oofem::FloatArray::at(), bcRhs, changingProblemSize, oofem::classFactory, oofem::StationaryTransportProblem::conductivityMatrix, copyUnknownsInDictionary(), oofem::EngngModel::giveCurrentMetaStep(), oofem::EngngModel::giveDomain(), oofem::TimeStep::giveNumber(), oofem::EngngModel::giveNumberOfDomainEquations(), giveNumericalMethod(), oofem::TimeStep::givePreviousStep(), giveSolutionStepWhenIcApply(), oofem::TimeStep::giveTargetTime(), oofem::TimeStep::incrementStateCounter(), oofem::TimeStep::isTheFirstStep(), linSolver, lumpedCapacityStab, OOFEM_ERROR, OOFEM_LOG_INFO, OOFEM_LOG_RELEVANT, oofem::StationaryTransportProblem::sparseMtrxType, oofem::FloatArray::times(), and oofem::StationaryTransportProblem::UnknownsField.
|
overridevirtual |
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 from oofem::EngngModel.
Definition at line 494 of file nonstationarytransportproblem.C.
References oofem::EngngModel::giveCurrentMetaStep(), oofem::EngngModel::giveDomain(), and giveNumericalMethod().
|
protectedvirtual |
Updates IP values on elements.
| tStep | Solution step. |
Reimplemented in oofem::NLTransientTransportProblem.
Definition at line 435 of file nonstationarytransportproblem.C.
References bcRhs, oofem::EngngModel::domainList, oofem::TimeStep::giveSolutionStateCounter(), internalVarUpdateStamp, requiresUnknownsDictionaryUpdate(), and oofem::StationaryTransportProblem::UnknownsField.
Referenced by updateYourself().
|
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 389 of file nonstationarytransportproblem.C.
References oofem::CemhydMat::averageTemperature(), oofem::CemhydMat::clearWeightTemperatureProductVolume(), oofem::EngngModel::domainList, oofem::TransportElement::giveMaterial(), oofem::CemhydMat::storeWeightTemperatureProductVolume(), updateInternalState(), and VERBOSE_PRINT0.
|
protected |
Definition at line 124 of file nonstationarytransportproblem.h.
Referenced by oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), assembleAlgorithmicPartOfRhs(), assembleDirichletBcRhsVector(), oofem::NLTransientTransportProblem::giveNextStep(), oofem::NLTransientTransportProblem::giveUnknownComponent(), initializeFrom(), oofem::NLTransientTransportProblem::solveYourselfAt(), solveYourselfAt(), and oofem::NLTransientTransportProblem::updateYourself().
|
protected |
Right hand side vector from boundary conditions.
Definition at line 118 of file nonstationarytransportproblem.h.
Referenced by solveYourselfAt(), and updateInternalState().
|
protected |
Determines if there are change in the problem size (no application/removal of Dirichlet boundary conditions).
Definition at line 136 of file nonstationarytransportproblem.h.
Referenced by applyIC(), initializeFrom(), requiresEquationRenumbering(), requiresUnknownsDictionaryUpdate(), oofem::NLTransientTransportProblem::solveYourselfAt(), and solveYourselfAt().
|
protected |
Length of time step.
Definition at line 123 of file nonstationarytransportproblem.h.
Referenced by giveDeltaT(), and initializeFrom().
|
protected |
Specified times where the problem is solved.
Definition at line 133 of file nonstationarytransportproblem.h.
Referenced by giveDeltaT(), giveDiscreteTime(), and initializeFrom().
|
protected |
Associated time function for time step increment.
Definition at line 130 of file nonstationarytransportproblem.h.
Referenced by giveDtFunction(), and initializeFrom().
|
protected |
Initial time from which the computation runs. Default is zero.
Definition at line 121 of file nonstationarytransportproblem.h.
Referenced by giveDiscreteTime(), giveNextStep(), giveSolutionStepWhenIcApply(), and initializeFrom().
|
protected |
Contains last time stamp of internal variable update. This update is made via various services (like those for computing real internal forces or updating the internal state).
Definition at line 112 of file nonstationarytransportproblem.h.
Referenced by updateInternalState().
|
protected |
Definition at line 115 of file nonstationarytransportproblem.h.
Referenced by giveNumericalMethod(), oofem::NLTransientTransportProblem::solveYourselfAt(), and solveYourselfAt().
|
protected |
If set then stabilization using lumped capacity will be used.
Definition at line 127 of file nonstationarytransportproblem.h.
Referenced by oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), assembleAlgorithmicPartOfRhs(), assembleDirichletBcRhsVector(), initializeFrom(), oofem::NLTransientTransportProblem::solveYourselfAt(), and solveYourselfAt().
|
protected |
Definition at line 114 of file nonstationarytransportproblem.h.
Referenced by giveNumericalMethod(), and initializeFrom().