2 #ifndef DEFORMING_BODY_MOTION_H
3 #define DEFORMING_BODY_MOTION_H
19 #include "HyperbolicMapping.h"
20 #include "GenericGraphicsInterface.h"
23 using namespace DBase;
26 class GenericGraphicsInterface;
27 class MappingInformation;
63 int numberOfTimeLevels = 3,
64 GenericGraphicsInterface *pGIDebug00 =NULL,
70 int correct( real t1, real t2,
74 int defineBody(
int numberOfFaces, IntegerArray & boundaryFaces );
76 int getAccelerationBC(
const real time0,
const int grid,
77 const Index &
I1,
const Index &
I2,
const Index &
I3,
78 realSerialArray & bcAcceleration);
81 int getAccelerationOrderOfAccuracy()
const;
84 int getInitialState( InitialStateOptionEnum stateOption,
86 const int grid,
const Index &
I1,
const Index &
I2,
const Index &
I3,
87 realSerialArray & state );
89 int getNumberOfGrids();
92 int getVelocity(
const real time0,
95 realArray & gridVelocity);
98 int getVelocityBC(
const real time0,
const int grid,
const Index &
I1,
const Index &
I2,
const Index &
I3,
99 realSerialArray & bcVelocity);
102 int getVelocityOrderOfAccuracy()
const;
108 int initialize(CompositeGrid &
cg, real t=0. );
110 int initializeGrid(CompositeGrid &
cg, real t=0. );
112 int initializePast( real time00, real dt00, CompositeGrid &
cg);
115 int integrate( real t1, real t2, real t3,
117 realCompositeGridFunction & stress );
119 void printFilamentHyperbolicDimensions(CompositeGrid & cg00,
int gridToMove00);
121 int regenerateComponentGrids(
const real newT, CompositeGrid &
cg);
123 void registerDeformingComponentGrid(
const int grid, CompositeGrid &
cg);
126 int setAccelerationOrderOfAccuracy(
int order );
129 int setVelocityOrderOfAccuracy(
int order );
131 int setType(
const DeformingBodyType bodyType );
134 int update(CompositeGrid &
cg, GenericGraphicsInterface & gi );
135 int update( GenericGraphicsInterface & gi );
139 int userDefinedDeformingSurface(real t1, real t2, real t3,
148 int advanceElasticShell(real t1, real t2, real t3,
152 realCompositeGridFunction & stress,
156 int getFace(
int grid )
const;
158 int getPastLevelGrid(
const int level,
161 realArray & gridVelocity);
163 void simpleGetVelocity(
const real vTime,
166 realArray & gridVelocity);