10 #if !defined(KRATOS_ASSIGN_TORQUE_FIELD_ABOUT_AN_AXIS_TO_CONDITIONS_PROCESS_H_INCLUDED)
11 #define KRATOS_ASSIGN_TORQUE_FIELD_ABOUT_AN_AXIS_TO_CONDITIONS_PROCESS_H_INCLUDED
45 pybind11::object& pPyObject,
46 const std::string& pPyMethodName,
47 const bool SpatialFieldFunction,
55 "model_part_name":"MODEL_PART_NAME",
56 "variable_name": "VARIABLE_NAME",
77 for(
unsigned int i=0;
i<3;
i++)
126 const double& rCurrentTime = rCurrentProcessInfo[TIME];
128 this->CallTimeFunction(rCurrentTime,
mvalue);
202 std::string
Info()
const override
204 return "AssignTorqueFieldAboutAnAxisToConditionsProcess";
210 rOStream <<
"AssignTorqueFieldAboutAnAxisToConditionsProcess";
272 void CallFunction(
const Node::Pointer& pNode,
const double&
time,
double& rValue)
278 double x = pNode->X(),
y = pNode->Y(),
z = pNode->Z();
291 void CallTimeFunction(
const double&
time,
double& rValue)
347 rOStream << std::endl;
The base class for assigning a value to scalar variables or array_1d components processes in Kratos.
Definition: assign_torque_about_an_axis_to_conditions_process.hpp:34
ModelPart & mrModelPart
Definition: assign_torque_about_an_axis_to_conditions_process.hpp:221
double mvalue
Definition: assign_torque_about_an_axis_to_conditions_process.hpp:223
array_1d< double, 3 > mcenter
Definition: assign_torque_about_an_axis_to_conditions_process.hpp:225
void Execute() override
Execute method is used to execute the AssignTorqueAboutAnAxisToConditionsProcess algorithms.
Definition: assign_torque_about_an_axis_to_conditions_process.hpp:119
array_1d< double, 3 > mdirection
Definition: assign_torque_about_an_axis_to_conditions_process.hpp:224
void ExecuteFinalize() override
Definition: assign_torque_about_an_axis_to_conditions_process.hpp:168
std::string mvariable_name
Definition: assign_torque_about_an_axis_to_conditions_process.hpp:222
The base class for assigning a value to scalar variables or array_1d components processes in Kratos.
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:32
AssignTorqueFieldAboutAnAxisToConditionsProcess(AssignTorqueFieldAboutAnAxisToConditionsProcess const &rOther)
Copy constructor.
void ExecuteInitialize() override
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:145
void operator()()
This operator is provided to call the process as a function and simply calls the Execute method.
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:105
void ExecuteFinalize() override
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:181
void Execute() override
Execute method is used to execute the AssignTorqueFieldAboutAnAxisToConditionsProcess algorithms.
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:117
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:214
~AssignTorqueFieldAboutAnAxisToConditionsProcess() override
Destructor.
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:97
void ExecuteInitializeSolutionStep() override
this function will be executed at every time step BEFORE performing the solve phase
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:157
std::string Info() const override
Turn back information as a string.
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:202
void ExecuteAfterOutputStep() override
this function will be executed at every time step AFTER writing the output
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:174
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:208
bool mIsSpatialField
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:235
AssignTorqueFieldAboutAnAxisToConditionsProcess(ModelPart &model_part, pybind11::object &pPyObject, const std::string &pPyMethodName, const bool SpatialFieldFunction, Parameters rParameters)
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:44
pybind11::object mPyObject
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:232
void ExecuteBeforeSolutionLoop() override
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:151
KRATOS_CLASS_POINTER_DEFINITION(AssignTorqueFieldAboutAnAxisToConditionsProcess)
Pointer definition of AssignTorqueFieldAboutAnAxisToConditionsProcess.
void ExecuteBeforeOutputStep() override
this function will be executed at every time step BEFORE writing the output
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:168
std::string mPyMethodName
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:233
void ExecuteFinalizeSolutionStep() override
this function will be executed at every time step AFTER performing the solve phase
Definition: assign_torque_field_about_an_axis_to_conditions_process.hpp:162
KratosComponents class encapsulates a lookup table for a family of classes in a generic way.
Definition: kratos_components.h:49
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ProcessInfo & GetProcessInfo()
Definition: model_part.h:1746
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
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_ERROR
Definition: exception.h:161
z
Definition: GenerateWind.py:163
bool Has(const std::string &ModelerName)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:24
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
TExpressionType::data_type norm_2(AMatrix::MatrixExpression< TExpressionType, TCategory > const &TheExpression)
Definition: amatrix_interface.h:625
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
time
Definition: face_heat.py:85
model_part
Definition: face_heat.py:14
y
Other simbols definition.
Definition: generate_axisymmetric_navier_stokes_element.py:54
x
Definition: sensitivityMatrix.py:49
integer i
Definition: TensorModule.f:17