1 #ifndef KRATOS_TIME_DEPENDANT_1D_POROSITY_FIELD_H
2 #define KRATOS_TIME_DEPENDANT_1D_POROSITY_FIELD_H
33 return ((coor[1] - 2) / (2 *
time -
mC));
41 return (2 * (2 - coor[1]) / ((2 *
time - 4) * (2 *
time -
mC)));
50 gradient[1] = 1.0 / (2 *
time -
mC);
76 virtual std::string
Info()
const
83 virtual void PrintInfo(std::ostream& rOStream)
const
89 virtual void PrintData(std::ostream& rOStream)
const
202 return (-
porosity * porosity_grad[1]);
223 virtual std::string
Info()
const
Definition: real_field.h:29
virtual double Evaluate(const double time, const array_1d< double, 3 > &coor)
Definition: real_field.h:45
virtual void CalculateGradient(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &gradient)
Definition: real_field.h:61
Definition: real_functions.h:27
Definition: time_dependant_1D_porosity_field.h:10
double mC
Definition: time_dependant_1D_porosity_field.h:108
virtual ~TimeDependant1DPorosityField()
Destructor.
Definition: time_dependant_1D_porosity_field.h:26
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: time_dependant_1D_porosity_field.h:83
virtual std::string Info() const
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: time_dependant_1D_porosity_field.h:76
double CalculateTimeDerivative(const double time, const array_1d< double, 3 > &coor) override
Definition: time_dependant_1D_porosity_field.h:39
void CalculateLaplacian(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &laplacian) override
Definition: time_dependant_1D_porosity_field.h:57
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: time_dependant_1D_porosity_field.h:89
void CalculateGradient(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &gradient) override
Definition: time_dependant_1D_porosity_field.h:47
RealFunction mG
Definition: time_dependant_1D_porosity_field.h:110
RealFunction mF
Definition: time_dependant_1D_porosity_field.h:109
double Evaluate(const double time, const array_1d< double, 3 > &coor) override
Definition: time_dependant_1D_porosity_field.h:31
TimeDependant1DPorosityField(const double &max_time)
Definition: time_dependant_1D_porosity_field.h:19
KRATOS_CLASS_POINTER_DEFINITION(TimeDependant1DPorosityField)
Definition: time_dependant_1D_porosity_field.h:180
void CalculateLaplacian(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &laplacian)
Definition: time_dependant_1D_porosity_field.h:217
TimeDependantForceField(const double max_time)
Definition: time_dependant_1D_porosity_field.h:187
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: time_dependant_1D_porosity_field.h:229
virtual std::string Info() const
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: time_dependant_1D_porosity_field.h:223
double Evaluate(const double time, const array_1d< double, 3 > &coor)
Definition: time_dependant_1D_porosity_field.h:195
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: time_dependant_1D_porosity_field.h:231
void CalculateGradient(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &gradient)
Definition: time_dependant_1D_porosity_field.h:216
virtual ~TimeDependantForceField()
Definition: time_dependant_1D_porosity_field.h:190
double CalculateTimeDerivative(const double time, const array_1d< double, 3 > &coor)
Definition: time_dependant_1D_porosity_field.h:208
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
float max_time
Definition: ProjectParameters.py:8
time
Definition: face_heat.py:85
porosity
Definition: sp_statistics.py:18