CG  Version 25
Public Types | Public Member Functions | Protected Attributes | List of all members
FlowSolutions Class Reference

#include <FlowSolutions.h>

Public Types

enum  KnownSolutionsEnum {
  superSonicExpandingFlow, specifiedPistonMotion, forcedPistonMotion, obliqueShockFlow,
  deformingDiffuser, shockElasticPiston
}
 

Public Member Functions

 FlowSolutions ()
 
 ~FlowSolutions ()
 
int getFlowSolution (const KnownSolutionsEnum knownSolution, realCompositeGridFunction &ua, int *ipar, real *rpar)
 
int getFlowSolution (const KnownSolutionsEnum knownSolution, CompositeGrid &cg, int grid, realArray &ua, int *ipar, real *rpar, const Index &I1, const Index &I2, const Index &I3)
 
int getFlowSolution (PistonMotion &pistonMotion, CompositeGrid &cg, int grid, realArray &ua, int *ipar, real *rpar, const Index &I1, const Index &I2, const Index &I3)
 Compute the solution defined by the PistonMotion class.
 
int getDeformingDiffuser (const KnownSolutionsEnum knownSolution, CompositeGrid &cg, int grid, realArray &ua, int *ipar, real *rpar, const Index &I1, const Index &I2, const Index &I3)
 Return the solid-mechanics solution to a deforming diffuser solid container.
 
int getObliqueShockFlow (const KnownSolutionsEnum knownSolution, CompositeGrid &cg, int grid, realArray &ua, int *ipar, real *rpar, const Index &I1, const Index &I2, const Index &I3)
 Define an oblqiue shock exact solution.
 
int getPistonFlow (const KnownSolutionsEnum knownSolution, CompositeGrid &cg, int grid, realArray &ua, int *ipar, real *rpar, const Index &I1, const Index &I2, const Index &I3)
 
int getShockElasticPistonFlow (const KnownSolutionsEnum knownSolution, CompositeGrid &cg, int grid, realArray &u, int *ipar, real *rpar, const Index &I1, const Index &I2, const Index &I3)
 
int getSupersonicExpandingFlow (realCompositeGridFunction &ua, int *ipar, real *rpar)
 Determine the solution to supersonic flow around an expanding corner.
 
int getSupersonicExpandingFlow (CompositeGrid &cg, int grid, realArray &ua, int *ipar, real *rpar, const Index &I1, const Index &I2, const Index &I3)
 

Protected Attributes

realCompositeGridFunction * v
 
RealArray * wallDataPointer
 

Member Enumeration Documentation

Enumerator
superSonicExpandingFlow 
specifiedPistonMotion 
forcedPistonMotion 
obliqueShockFlow 
deformingDiffuser 
shockElasticPiston 

Constructor & Destructor Documentation

FlowSolutions::FlowSolutions ( )

References v, and wallDataPointer.

FlowSolutions::~FlowSolutions ( )

References v, and wallDataPointer.

Member Function Documentation

int FlowSolutions::getDeformingDiffuser ( const KnownSolutionsEnum  knownSolution,
CompositeGrid &  cg,
int  grid,
realArray &  ua,
int *  ipar,
real *  rpar,
const Index &  I1,
const Index &  I2,
const Index &  I3 
)

Return the solid-mechanics solution to a deforming diffuser solid container.

References assert(), center, deformingDiffuser, FOR_3D, grid, i1, i2, i3, mg, OV_ABORT(), tc, u, wc, x, y, and z.

Referenced by getFlowSolution().

int FlowSolutions::getFlowSolution ( const KnownSolutionsEnum  knownSolution,
realCompositeGridFunction &  ua,
int *  ipar,
real *  rpar 
)

References cg, getIndex(), grid, I1, I2, I3, and mg.

Referenced by Parameters::getUserDefinedKnownSolution().

int FlowSolutions::getFlowSolution ( const KnownSolutionsEnum  knownSolution,
CompositeGrid &  cg,
int  grid,
realArray &  ua,
int *  ipar,
real *  rpar,
const Index &  I1,
const Index &  I2,
const Index &  I3 
)
int FlowSolutions::getFlowSolution ( PistonMotion pistonMotion,
CompositeGrid &  cg,
int  grid,
realArray &  ua,
int *  ipar,
real *  rpar,
const Index &  I1,
const Index &  I2,
const Index &  I3 
)

Compute the solution defined by the PistonMotion class.

References center, FOR_3D, PistonMotion::getFlow(), grid, i1, i2, i3, mg, tc, u, x, and y.

int FlowSolutions::getObliqueShockFlow ( const KnownSolutionsEnum  knownSolution,
CompositeGrid &  cg,
int  grid,
realArray &  ua,
int *  ipar,
real *  rpar,
const Index &  I1,
const Index &  I2,
const Index &  I3 
)

Define an oblqiue shock exact solution.

References assert(), center, FOR_3D, grid, i1, i2, i3, mg, obliqueShockFlow, tc, u, wc, x, y, and z.

Referenced by getFlowSolution().

int FlowSolutions::getPistonFlow ( const KnownSolutionsEnum  knownSolution,
CompositeGrid &  cg,
int  grid,
realArray &  ua,
int *  ipar,
real *  rpar,
const Index &  I1,
const Index &  I2,
const Index &  I3 
)
int FlowSolutions::getShockElasticPistonFlow ( const KnownSolutionsEnum  knownSolution,
CompositeGrid &  cg,
int  grid,
realArray &  u,
int *  ipar,
real *  rpar,
const Index &  I1,
const Index &  I2,
const Index &  I3 
)

References assert(), center, FOR_3D, gam, grid, i1, i2, i3, lambda, m, mg, mu, printF(), s11c, s12c, s21c, s22c, shockElasticPiston, tc, u, v1c, v2c, vs0, and x.

Referenced by getFlowSolution().

int FlowSolutions::getSupersonicExpandingFlow ( realCompositeGridFunction &  ua,
int *  ipar,
real *  rpar 
)

Determine the solution to supersonic flow around an expanding corner.

Parameters
ipar(input) :
rpar(input) :

References a, a0, assert(), center, cg, evaluateBoundaryCurve(), findStartOfCPlusCharacteristic(), FOR_3D, getIndex(), grid, i, i1, I1, i2, I2, i3, I3, k, mg, mu, muFromPmu(), rho, tc, theta, u, u0, wallDataPointer, wc, x, and y.

Referenced by getFlowSolution().

int FlowSolutions::getSupersonicExpandingFlow ( CompositeGrid &  cg,
int  grid,
realArray &  ua,
int *  ipar,
real *  rpar,
const Index &  I1,
const Index &  I2,
const Index &  I3 
)

Member Data Documentation

realCompositeGridFunction* FlowSolutions::v
protected

Referenced by FlowSolutions(), and ~FlowSolutions().

RealArray* FlowSolutions::wallDataPointer
protected

The documentation for this class was generated from the following files: