1 #ifndef KRATOS_TIME_DEPENDANT_1D_POROSITY_FIELD_H
2 #define KRATOS_TIME_DEPENDANT_1D_POROSITY_FIELD_H
36 return ((coor[1] - 2) / (2 *
time - mC));
44 return (2 * (2 - coor[1]) / ((2 *
time - 4) * (2 *
time - mC)));
53 gradient[1] = 1.0 / (2 *
time - mC);
81 virtual std::string
Info()
const override
88 virtual void PrintInfo(std::ostream& rOStream)
const override
94 virtual void PrintData(std::ostream& rOStream)
const override
184 class TimeDependantForceField:
public VectorField<3>
204 vector[1] = -
porosity * porosity_grad[1];
213 std::string
Info()
const override
215 return "time-dependant porosity field";
219 void PrintInfo(std::ostream& rOStream)
const override {}
222 void PrintData(std::ostream& rOStream)
const override {}
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
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: time_dependant_1D_porosity_field.h:180
std::string Info() const override
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: time_dependant_porosity_field.h:213
TimeDependantForceField(const double max_time)
Definition: time_dependant_porosity_field.h:191
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: time_dependant_porosity_field.h:222
void Evaluate(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &vector, const int i_thread=0) override
Definition: time_dependant_porosity_field.h:197
KRATOS_CLASS_POINTER_DEFINITION(TimeDependantForceField)
virtual ~TimeDependantForceField()
Definition: time_dependant_porosity_field.h:193
TimeDependantPorosityField GetPorosityField()
Definition: time_dependant_porosity_field.h:211
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: time_dependant_porosity_field.h:219
Definition: time_dependant_porosity_field.h:15
TimeDependantPorosityField(const double &max_time)
Default constructor.
Definition: time_dependant_porosity_field.h:25
double CalculateTimeDerivative(const double time, const array_1d< double, 3 > &coor) override
Definition: time_dependant_porosity_field.h:42
void CalculateGradient(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &gradient) override
Definition: time_dependant_porosity_field.h:50
virtual std::string Info() const override
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: time_dependant_porosity_field.h:81
KRATOS_CLASS_POINTER_DEFINITION(TimeDependantPorosityField)
virtual ~TimeDependantPorosityField()
Destructor.
Definition: time_dependant_porosity_field.h:29
void CalculateLaplacian(const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &laplacian) override
Definition: time_dependant_porosity_field.h:60
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: time_dependant_porosity_field.h:94
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: time_dependant_porosity_field.h:88
double Evaluate(const double time, const array_1d< double, 3 > &coor) override
Definition: time_dependant_porosity_field.h:34
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
float max_time
Definition: ProjectParameters.py:8
time
Definition: face_heat.py:85
porosity
Definition: sp_statistics.py:18