24 #ifndef _GEMA_PHYSICS_H_ 25 #define _GEMA_PHYSICS_H_ 74 int type = -1,
int nlin = -1,
int ncol = -1,
75 bool canBeFunction =
true,
bool ignoreWarnings =
false)
77 return propertyAccessorAux(mesh, stdPropertyName, msgDescription, table, desiredUnit,
false,
78 required, type, nlin, ncol, canBeFunction, ignoreWarnings);
84 int type = -1,
int nlin = -1,
int ncol = -1,
85 bool canBeFunction =
true,
bool ignoreWarnings =
false)
87 return propertyAccessorAux(mesh, stdPropertyName, msgDescription, table, desiredUnit,
true,
88 required, type, nlin, ncol, canBeFunction, ignoreWarnings);
94 bool required,
int type = -1,
int nlin = -1,
int ncol = -1,
95 bool ignoreWarnings =
false)
97 return discontinuityPropertyAccessorAux(discSet, stdPropertyName, msgDescription, table, desiredUnit,
98 false, required, type, nlin, ncol, ignoreWarnings);
104 bool required,
int type = -1,
int nlin = -1,
int ncol = -1,
105 bool ignoreWarnings =
false)
107 return discontinuityPropertyAccessorAux(discSet, stdPropertyName, msgDescription, table, desiredUnit,
108 true, required, type, nlin, ncol, ignoreWarnings);
114 LuaTable& table,
Unit desiredUnit,
bool required,
int type = -1,
115 int nlin = -1,
int ncol = -1,
int history = -1,
bool canBeFunction =
true,
116 bool create =
false,
QString createFormat =
"",
int createHistory = -1,
117 bool ignoreWarnings =
false);
120 LuaTable& table,
Unit desiredUnit,
bool required,
int type = -1,
121 int nlin = -1,
int ncol = -1,
int history = -1,
bool canBeFunction =
true,
122 bool create =
false,
QString createFormat =
"",
int createHistory = -1,
123 bool ignoreWarnings =
false);
126 LuaTable& table,
Unit desiredUnit,
bool required,
int type = -1,
127 int nlin = -1,
int ncol = -1,
int history = -1,
bool canBeFunction =
true,
128 bool ignoreWarnings =
false);
131 Unit desiredUnit,
bool required,
int type = -1,
132 int nlin = -1,
int ncol = -1,
bool canBeFunction =
true,
bool ignoreWarnings =
false);
135 Unit desiredUnit,
bool required,
int type = -1,
136 int nlin = -1,
int ncol = -1,
bool canBeFunction =
true,
bool ignoreWarnings =
false);
140 int type = -1,
int nlin = -1,
int ncol = -1,
bool ignoreWarnings =
false);
144 LuaTable& table,
Unit desiredUnit,
bool acceptsElementAttributes,
145 bool required,
int type,
int nlin,
int ncol,
bool canBeFunction,
146 bool ignoreWarnings);
150 bool acceptsElementAttributes,
bool required,
151 int type,
int nlin,
int ncol,
bool ignoreWarnings);
168 virtual const char*
pluginType()
const {
return "userFunctions"; }
GmDiscontinuityAccessor * discontinuityPropertyAccessor(GmDiscontinuitySet *discSet, QString stdPropertyName, QString msgDescription, LuaTable &table, Unit desiredUnit, bool required, int type=-1, int nlin=-1, int ncol=-1, bool ignoreWarnings=false)
Simmilar to propertyAccessor() but looking for properties in a discontinuity set.
Definition: gmPhysics.h:92
virtual bool loadPrivateData(LuaTable &table)=0
Function called by the model loader to give the object acess to it's private parameters....
Declaration of the GmUserFunction and GmUserFunctionEvaluator classes.
Declaration of the GmPluginObject base class.
bool(GmPhysicsUserFunctions::* GmCUserMethod)(const GmUserFunctionContext *context, double *out)
A pointer to a C function exported from a physics plugin to evaluate the value of some attribute / pr...
Definition: gmUserFunction.h:75
GmCellAccessor * propertyAccessor(GmCellMesh *mesh, QString stdPropertyName, QString msgDescription, LuaTable &table, Unit desiredUnit, bool required, int type=-1, int nlin=-1, int ncol=-1, bool canBeFunction=true, bool ignoreWarnings=false)
An auxilliary function that given a property name, retrieves the accessor for that property.
Definition: gmPhysics.h:72
A class used to represent a set of boundary conditions of the same type, tied to the same mesh.
Definition: gmBoundaryCondition.h:262
virtual const char * pluginCategory() const
Returns the plugin category.
Definition: gmPhysics.h:165
Interface class for accessing and setting values from an "indexable" collection of values.
Definition: gmValueAccessor.h:59
const GmMesh * _mesh
The mesh that this object is bound to.
Definition: gmPhysics.h:187
Auxiliar class used to store the complete set of simulation data.
Definition: gmSimulationData.h:51
Base interface class for Physics type plugins to export user functions that can be used to provide at...
Definition: gmPhysics.h:158
The GmBoundaryConditionAccessor class is a proxy object to a value accesor implementing a more conven...
Definition: gmBoundaryConditionAccessor.h:73
Base interface class for Physics type plugins.
Definition: gmPhysics.h:41
virtual void printParameters(const GmLogCategory &logger)=0
Asks the object to print all of its parameters using the provided logger.
Definition: gmPluginObject.cpp:62
The GmCellAccessor class is a proxy object to a value accesor implementing a more convenient interfac...
Definition: gmCellAccessor.h:66
Base interface class for CellMesh type plugins.
Definition: gmCellMesh.h:39
GmDiscontinuityAccessor * extDiscontinuityPropertyAccessor(GmDiscontinuitySet *discSet, QString stdPropertyName, QString msgDescription, LuaTable &table, Unit desiredUnit, bool required, int type=-1, int nlin=-1, int ncol=-1, bool ignoreWarnings=false)
Simmilar to extPropertyAccessor() but looking for properties/attributes in a discontinuity set.
Definition: gmPhysics.h:102
Declaration of macros for standard plugin categories.
void setMesh(const GmMesh *mesh)
Sets the mesh that this object is bound to.
Definition: gmPhysics.h:174
Base interface class for all object plugins.
Definition: gmPluginObject.h:36
#define GMC_API_EXPORT
Macro for controling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_LI...
Definition: gmCoreConfig.h:35
Class representing a category with multiple logging levels.
Definition: gmLog.h:58
The GmDiscontinuityAccessor class is a proxy object to a value accesor implementing a more convenient...
Definition: gmDiscontinuityAccessor.h:47
virtual const char * pluginType() const
Returns the string identifying the plugin object type. Should return the SAME string as the one read ...
Definition: gmPhysics.h:168
const GmMesh * mesh() const
Returns the mesh that this object is bound to.
Definition: gmPhysics.h:184
Base interface for providing discontinuity geometry information for spatial indices.
Definition: gmDiscontinuitySet.h:48
#define GM_PLUGIN_PHYSICS
Plugin implements physical methods.
Definition: gmPluginCategory.h:29
virtual const char * pluginCategory() const
Returns the plugin category.
Definition: gmPhysics.h:48
Base interface class for Mesh type plugins.
Definition: gmMesh.h:44
GmCellAccessor * extPropertyAccessor(GmCellMesh *mesh, QString stdPropertyName, QString msgDescription, LuaTable &table, Unit desiredUnit, bool required, int type=-1, int nlin=-1, int ncol=-1, bool canBeFunction=true, bool ignoreWarnings=false)
Simmilar to propertyAccessor() but also looking for the requested property name in the set of element...
Definition: gmPhysics.h:82