14 #if !defined(KRATOS_DAM_AZENHA_HEAT_SOURCE_PROCESS)
15 #define KRATOS_DAM_AZENHA_HEAT_SOURCE_PROCESS
47 "model_part_name":"PLEASE_CHOOSE_MODEL_PART_NAME",
48 "variable_name": "PLEASE_PRESCRIBE_VARIABLE_NAME",
49 "activation_energy" : 0.0,
51 "constant_rate" : 0.0,
52 "alpha_initial" : 0.0,
68 rParameters[
"activation_energy"];
69 rParameters[
"gas_constant"];
118 #pragma omp parallel for
121 ModelPart::NodesContainerType::iterator it = it_begin +
i;
127 const double temp_current = it->FastGetSolutionStepValue(TEMPERATURE) + 273.0;
129 it->FastGetSolutionStepValue(var) = heat_flux;
130 it->FastGetSolutionStepValue(ALPHA_HEAT_SOURCE) =
mAlphaInitial;
158 #pragma omp parallel for
161 ModelPart::NodesContainerType::iterator it = it_begin +
i;
164 double current_alpha = ((it->FastGetSolutionStepValue(var, 1)) /
mQTotal) *
delta_time + (it->FastGetSolutionStepValue(ALPHA_HEAT_SOURCE));
165 double f_alpha =
mA * (pow(current_alpha, 2)) * exp(-
mB * pow(current_alpha, 3)) +
mC * current_alpha * exp(-
mD * current_alpha);
168 if (current_alpha >= 1.0)
175 const double temp_current = it->FastGetSolutionStepValue(TEMPERATURE, 1) + 273.0;
177 it->FastGetSolutionStepValue(var) = heat_flux;
178 it->FastGetSolutionStepValue(ALPHA_HEAT_SOURCE) = current_alpha;
203 #pragma omp parallel for
206 ModelPart::NodesContainerType::iterator it = it_begin +
i;
212 const double temp_current = it->FastGetSolutionStepValue(TEMPERATURE) + 273.0;
214 it->FastGetSolutionStepValue(var) = heat_flux;
215 it->FastGetSolutionStepValue(ALPHA_HEAT_SOURCE) =
mAlphaInitial;
237 #pragma omp parallel for
240 ModelPart::NodesContainerType::iterator it = it_begin +
i;
243 double current_alpha = ((it->FastGetSolutionStepValue(var, 1)) /
mQTotal) *
delta_time + (it->FastGetSolutionStepValue(ALPHA_HEAT_SOURCE));
244 double f_alpha =
mA * (pow(current_alpha, 2)) * exp(-
mB * pow(current_alpha, 3)) +
mC * current_alpha * exp(-
mD * current_alpha);
247 if (current_alpha >= 1.0)
254 const double temp_current = it->FastGetSolutionStepValue(TEMPERATURE, 1) + 273.0;
256 it->FastGetSolutionStepValue(var) = heat_flux;
257 it->FastGetSolutionStepValue(ALPHA_HEAT_SOURCE) = current_alpha;
258 it->FastGetSolutionStepValue(NODAL_YOUNG_MODULUS) = sqrt(current_alpha) *
mYoungInf;
267 std::string
Info()
const override
269 return "DamAzenhaHeatFluxProcess";
275 rOStream <<
"DamAzenhaHeatFluxProcess";
318 rOStream << std::endl;
Definition: dam_azenha_heat_source_process.hpp:31
void ExecuteInitialize() override
This function is designed for being called at the beginning of the computations right after reading t...
Definition: dam_azenha_heat_source_process.hpp:105
bool mAging
Definition: dam_azenha_heat_source_process.hpp:295
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: dam_azenha_heat_source_process.hpp:273
double mAlphaInitial
Definition: dam_azenha_heat_source_process.hpp:292
double mGasConstant
Definition: dam_azenha_heat_source_process.hpp:290
void ExecuteInitializeSolutionStepAging()
Definition: dam_azenha_heat_source_process.hpp:225
double mC
Definition: dam_azenha_heat_source_process.hpp:298
double mQTotal
Definition: dam_azenha_heat_source_process.hpp:293
double mB
Definition: dam_azenha_heat_source_process.hpp:297
std::string mVariableName
Definition: dam_azenha_heat_source_process.hpp:288
DamAzenhaHeatFluxProcess(ModelPart &rModelPart, Parameters &rParameters)
Constructor.
Definition: dam_azenha_heat_source_process.hpp:39
double mA
Definition: dam_azenha_heat_source_process.hpp:296
double mActivationEnergy
Definition: dam_azenha_heat_source_process.hpp:289
double mD
Definition: dam_azenha_heat_source_process.hpp:299
void Execute() override
Execute method is used to execute the Process algorithms.
Definition: dam_azenha_heat_source_process.hpp:99
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: dam_azenha_heat_source_process.hpp:279
double mConstantRate
Definition: dam_azenha_heat_source_process.hpp:291
KRATOS_CLASS_POINTER_DEFINITION(DamAzenhaHeatFluxProcess)
ModelPart & mrModelPart
Member Variables.
Definition: dam_azenha_heat_source_process.hpp:287
double mYoungInf
Definition: dam_azenha_heat_source_process.hpp:294
virtual ~DamAzenhaHeatFluxProcess()
Destructor.
Definition: dam_azenha_heat_source_process.hpp:95
void ExecuteInitializeSolutionStep() override
This function will be executed at every time step BEFORE performing the solve phase.
Definition: dam_azenha_heat_source_process.hpp:144
void ExecuteInitializeAging()
Definition: dam_azenha_heat_source_process.hpp:192
std::string Info() const override
Turn back information as a string.
Definition: dam_azenha_heat_source_process.hpp:267
KratosComponents class encapsulates a lookup table for a family of classes in a generic way.
Definition: kratos_components.h:49
NodesContainerType & Nodes()
Definition: mesh.h:346
NodeIterator NodesBegin()
Definition: mesh.h:326
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ProcessInfo & GetProcessInfo()
Definition: model_part.h:1746
MeshType & GetMesh(IndexType ThisIndex=0)
Definition: model_part.h:1791
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
double GetDouble() const
This method returns the double contained in the current Parameter.
Definition: kratos_parameters.cpp:657
void ValidateAndAssignDefaults(const Parameters &rDefaultParameters)
This function is designed to verify that the parameters under testing match the form prescribed by th...
Definition: kratos_parameters.cpp:1306
std::string GetString() const
This method returns the string contained in the current Parameter.
Definition: kratos_parameters.cpp:684
bool GetBool() const
This method returns the boolean contained in the current Parameter.
Definition: kratos_parameters.cpp:675
size_type size() const
Returns the number of elements in the container.
Definition: pointer_vector_set.h:502
The base class for all processes in Kratos.
Definition: process.h:49
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
delta_time
Definition: generate_frictional_mortar_condition.py:130
int f_alpha
alpha method affected variables
Definition: generate_two_fluid_navier_stokes.py:133
int nnodes
Definition: sensitivityMatrix.py:24
integer i
Definition: TensorModule.f:17