71 : mpInputVariable(&rInputVariable)
74 if (rInputVariableType ==
"node_historical") {
76 }
else if (rInputVariableType ==
"node_non_historical") {
78 }
else if (rInputVariableType ==
"element") {
81 KRATOS_ERROR <<
"The table_input_variable_type is incorrect or not supported. Types available are : 'node_historical', 'node_non_historical' and 'element'" << std::endl;
88 mpInputVariable(rOther.mpInputVariable),
89 mInputVariableType(rOther.mInputVariableType)
109 const Vector& rShapeFunctionVector,
117 double GetValueFromTable(
122 const Vector& rShapeFunctionVector,
131 return *mpInputVariable;
135 Accessor::UniquePointer Clone()
const override;
142 std::string
Info()
const override
144 std::stringstream buffer;
145 buffer <<
"TableAccessor" ;
151 void PrintInfo(std::ostream& rOStream)
const override {rOStream <<
"TableAccessor";}
154 void PrintData(std::ostream& rOStream)
const override {rOStream <<
"TableAccessor class";}
163 VariableType* mpInputVariable;
168 void save(
Serializer &rSerializer)
const override;
This class defines the way a certain property is accessed.
Definition: accessor.h:43
Geometry base class.
Definition: geometry.h:71
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
This class defines the way a certain property is accessed according to a table.
Definition: table_accessor.h:42
TableAccessor(const TableAccessor &rOther)
Copy constructor.
Definition: table_accessor.h:86
TableAccessor(VariableType &rInputVariable, const std::string &rInputVariableType="node_historical")
Custom constructor.
Definition: table_accessor.h:70
std::string Info() const override
Turn back information as a string.
Definition: table_accessor.h:142
VariableType & GetInputVariable() const
Returns the member input variable.
Definition: table_accessor.h:129
TableAccessor()
Definition: table_accessor.h:66
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: table_accessor.h:151
KRATOS_CLASS_POINTER_DEFINITION(TableAccessor)
Pointer definition of TableAccessor.
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: table_accessor.h:154
std::size_t SizeType
Definition: table_accessor.h:58
#define KRATOS_ERROR
Definition: exception.h:161
DataLocation
Enum for location of data.
Definition: global_variables.h:48
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
def load(f)
Definition: ode_solve.py:307