35 #ifndef transienttransportproblem_h 36 #define transienttransportproblem_h 46 #define _IFT_TransientTransportProblem_Name "transienttransport" 47 #define _IFT_TransientTransportProblem_alpha "alpha" 48 #define _IFT_TransientTransportProblem_deltaT "deltat" 49 #define _IFT_TransientTransportProblem_dtFunction "dtfunction" 50 #define _IFT_TransientTransportProblem_prescribedTimes "prescribedtimes" 51 #define _IFT_TransientTransportProblem_keepTangent "keeptangent" 52 #define _IFT_TransientTransportProblem_lumped "lumped" 53 #define _IFT_TransientTransportProblem_exportFields "exportfields" 57 class SparseNonLinearSystemNM;
69 std :: unique_ptr< PrimaryField >
field;
78 std :: unique_ptr< SparseNonLinearSystemNM >
nMethod;
126 virtual const char *
giveClassName()
const {
return "TransientTransportProblem"; }
130 #endif // transienttransportproblem_h virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode)
Stores the state of model to output stream.
virtual double giveUnknownComponent(ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof)
Returns requested unknown.
std::shared_ptr< Field > FieldPtr
FloatArray prescribedTimes
FieldType
Physical type of field.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
This base class is an abstraction for numerical algorithm.
virtual void solveYourselfAt(TimeStep *tStep)
Solves problem for given time step.
virtual NumericalMethod * giveNumericalMethod(MetaStep *mStep)
Returns reference to receiver's numerical method.
virtual void updateComponent(TimeStep *tStep, NumericalCmpn cmpn, Domain *d)
Updates components mapped to numerical method if necessary during solution process.
std::unique_ptr< PrimaryField > field
virtual int checkConsistency()
Allows programmer to test some receiver's internal data, before computation begins.
virtual bool requiresEquationRenumbering(TimeStep *tStep)
Returns true if equation renumbering is required for given solution step.
virtual ~TransientTransportProblem()
Destructor.
virtual fMode giveFormulation()
Indicates type of non linear computation (total or updated formulation).
Class implementing an array of integers.
TransientTransportProblem(int i, EngngModel *_master)
Constructor.
virtual void updateDomainLinks()
Updates domain links after the domains of receiver have changed.
double giveDiscreteTime(int iStep)
FloatArray internalForces
NumericalCmpn
Type representing numerical component.
Solves general nonlinear transient transport problems.
SparseMtrxType
Enumerative type used to identify the sparse matrix type.
virtual int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep)
This method is responsible for computing unique dictionary id (ie hash value) from given valueModeTyp...
virtual FieldPtr giveField(FieldType key, TimeStep *)
Returns the smart pointer to requested field, Null otherwise.
std::unique_ptr< SparseMtrx > effectiveMatrix
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description in input reader.
Function * giveDtFunction()
SparseMtrxType sparseMtrxType
Class representing vector of real numbers.
virtual int forceEquationNumbering()
Forces equation renumbering on all domains associated to engng model.
Abstract base class representing a function with vector input and output.
IRResultType
Type defining the return values of InputRecord reading operations.
fMode
Type representing the type of formulation (total or updated) of non-linear computation.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
virtual TimeStep * giveSolutionStepWhenIcApply(bool force=false)
Returns the solution step when Initial Conditions (IC) apply.
virtual void updateYourself(TimeStep *tStep)
Updates internal state after finishing time step.
Abstract base class representing the "problem" under consideration.
virtual const char * giveClassName() const
Returns class name of the receiver.
std::unique_ptr< SparseNonLinearSystemNM > nMethod
Numerical method used to solve the problem.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual int requiresUnknownsDictionaryUpdate()
Indicates if EngngModel requires Dofs dictionaries to be updated.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
virtual TimeStep * giveNextStep()
Returns next time step (next to current step) of receiver.
virtual const char * giveInputRecordName() const
Class representing solution step.
#define _IFT_TransientTransportProblem_Name
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode)
Restores the state of model from output stream.