HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_StrainIntegrate.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_StrainIntegrate.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_StrainIntegrate__
12 #define __GAS_StrainIntegrate__
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("alpha", Alpha);
30  GETSET_DATA_FUNCS_F("gamma", Gamma);
31 
34 
35 protected:
36  explicit GAS_StrainIntegrate(const SIM_DataFactory *factory);
37  ~GAS_StrainIntegrate() override;
38 
39  /// Compute the amount of stress to add to each voxel according
40  /// to the given strain amounts.
41  bool solveGasSubclass(SIM_Engine &engine,
42  SIM_Object *obj,
43  SIM_Time time,
44  SIM_Time timestep) override;
45 
46  /// Updates the strain field according to the velocity field
47  /// Update only occurs inside the surface.
48  void integrateStrain(SIM_VectorField *velocity,
49  const SIM_ScalarField *surface,
50  SIM_MatrixField *strain,
51  fpreal timestep);
52 
53 private:
54  static const SIM_DopDescription *getDopDescription();
55 
59  "Gas Strain Integrate",
60  getDopDescription());
61 };
62 
63 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
GT_API const UT_StringHolder time
#define GAS_NAME_USETIMESTEP
Definition: GAS_Utils.h:39
#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:42
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:63
This class holds a three dimensional tensor field.
#define GAS_NAME_STRAIN
Definition: GAS_Utils.h:37
fpreal64 fpreal
Definition: SYS_Types.h:277
#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:40
#define GAS_NAME_SURFACE
Definition: GAS_Utils.h:38
GA_API const UT_StringHolder Alpha
This class holds a three dimensional vector field.
#define GET_DATA_FUNC_S(DataName, FuncName)