14 #if !defined(KRATOS_ASSIGN_SCALAR_INPUT_TO_ENTITIES_PROCESS_H_INCLUDED )
15 #define KRATOS_ASSIGN_SCALAR_INPUT_TO_ENTITIES_PROCESS_H_INCLUDED
51 template<
class TEntity,
bool THistorical = false>
116 void ExecuteInitializeSolutionStep()
override;
121 const Parameters GetDefaultParameters()
const override;
138 std::string
Info()
const override
140 return "AssignScalarInputToEntitiesProcess";
146 rOStream <<
"AssignScalarInputToEntitiesProcess";
197 std::vector<std::unordered_map<IndexType, double>> mWeightExtrapolation;
199 std::vector<array_1d<double, 3>> mCoordinates;
201 Algorithm mAlgorithm = Algorithm::NEAREST_NEIGHBOUR;
211 void IdentifyDataTXT(
const std::string& rFileName);
217 void IdentifyDataJSON(
const std::string& rFileName);
223 void ReadDataTXT(
const std::string& rFileName);
229 void ReadDataJSON(
const std::string& rFileName);
234 void ComputeExtrapolationWeight();
241 void InternalAssignValue(
251 Algorithm ConvertAlgorithmString(
const std::string& Str)
253 if(Str ==
"NEAREST_NEIGHBOUR" || Str ==
"nearest_neighbour")
254 return Algorithm::NEAREST_NEIGHBOUR;
256 return Algorithm::NEAREST_NEIGHBOUR;
264 array_1d<double, 3> GetCoordinatesEntity(
const IndexType Id);
270 EntityContainerType& GetEntitiesContainer();
285 const Variable<double>& rVariable,
297 const Variable<double>& rVariable
332 template<
class TEntity>
337 template<
class TEntity>
342 rOStream << std::endl;
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class defines the node.
Definition: node.h:65
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
The base class for all processes in Kratos.
Definition: process.h:49
This class stores the results of a simulation for a later comparison.
Definition: result_dabatase.h:403
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
Parameters GetValue(Parameters &rParameters, const std::string &rEntry)
Definition: add_kratos_parameters_to_python.cpp:53
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
def SetValue(entity, variable, value)
Definition: coupling_interface_data.py:256