HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GAS_StrainForces.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GAS_StrainForces.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_StrainForces__
12 #define __GAS_StrainForces__
13 
14 #include "GAS_API.h"
15 
16 #include "GAS_SubSolver.h"
17 #include "GAS_Utils.h"
18 
19 class SIM_VectorField;
20 class SIM_ScalarField;
21 
23 {
24 public:
25  GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
26  GET_DATA_FUNC_S(GAS_NAME_STRAIN, StrainName);
27  GET_DATA_FUNC_S(GAS_NAME_VELOCITY, VelocityName);
28 
29  GETSET_DATA_FUNCS_F("elasticmodulus", ElasticModulus);
30 
33 
34 protected:
35  explicit GAS_StrainForces(const SIM_DataFactory *factory);
36  virtual ~GAS_StrainForces();
37 
38  /// Compute the amount of stress to add to each voxel according
39  /// to the given strain amounts.
40  virtual bool solveGasSubclass(SIM_Engine &engine,
41  SIM_Object *obj,
42  SIM_Time time,
43  SIM_Time timestep);
44 
45  /// Using the given strain field, update the velocity
46  /// field to take into account the relevant strains.
47  void addStrainForces(SIM_VectorField *velocity,
48  const SIM_ScalarField *surface,
49  SIM_MatrixField *strain,
50  fpreal timestep);
51 
52 private:
53  static const SIM_DopDescription *getDopDescription();
54 
58  "Gas Strain Forces",
59  getDopDescription());
60 };
61 
62 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
#define GAS_NAME_USETIMESTEP
Definition: GAS_Utils.h:37
#define GAS_API
Definition: GAS_API.h:10
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
#define GETSET_DATA_FUNCS_F(DataName, FuncName)
#define GAS_NAME_VELOCITY
Definition: GAS_Utils.h:40
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:58
This class holds a three dimensional tensor field.
double fpreal
Definition: SYS_Types.h:269
#define GAS_NAME_STRAIN
Definition: GAS_Utils.h:35
#define GET_DATA_FUNC_B(DataName, FuncName)
#define GET_DATA_FUNC_F(DataName, FuncName)
This class holds a three dimensional scalar field.
#define GAS_NAME_TIMESCALE
Definition: GAS_Utils.h:38
#define GAS_NAME_SURFACE
Definition: GAS_Utils.h:36
This class holds a three dimensional vector field.
#define GET_DATA_FUNC_S(DataName, FuncName)