#include <PistonMotion.h>
|
| PistonMotion () |
|
| ~PistonMotion () |
|
| PistonMotion (const PistonMotion &x) |
| copy constructor
|
|
real | getPosition (const real t) const |
| Return the piston position.
|
|
real | getVelocity (const real t) const |
| Return the piston velocity.
|
|
int | getFlow (const real t, const real x, real &rhoTrue, real &uTrue, real &pTrue) const |
| Compute the fluid solution at a point (t,x)
|
|
int | getPiston (const real t, real &g, real >) const |
| Get the piston position and velocity.
|
|
int | update (GenericGraphicsInterface &gi) |
| Define the piston motion parameters.
|
|
|
int | computePistonMotion () |
| Solve the ODEs for the piston position and velocity and save as a Nurbs.
|
|
int | dirkImplicitSolve (const real dt, const real aii, const real tc, const RealArray &yv, const RealArray &yv0, RealArray &kv) |
| : Solve the implicit DIRK equation for kv. This is a protected routine.
|
|
void | setGlobalConstants () const |
|
int | timeStep (RealArray &yNew, RealArray &y, real t, real dt) |
| Solve the ODEs for the piston position and velocity.
|
|
Enumerator |
---|
specifiedPistonMotion |
|
pressureDrivenPistonMotion |
|
pressureAndBodyForcedPistonMotion |
|
PistonMotion::PistonMotion |
( |
| ) |
|
References a0, ag, area, bf, cfl, debug, dt0, gamma, mass, newtonTol, nurbs, orderOfAccuracy, p0, pg, pistonOption, pressureDrivenPistonMotion, rho0, rtol, setGlobalConstants(), tFinal, and u0.
PistonMotion::~PistonMotion |
( |
| ) |
|
copy constructor
References a0, ag, area, assert(), bf, cfl, debug, dt0, gamma, j, mass, newtonTol, nurbs, orderOfAccuracy, p0, pg, pistonOption, rho0, rtol, setGlobalConstants(), tFinal, and u0.
int PistonMotion::computePistonMotion |
( |
| ) |
|
|
protected |
Solve the ODEs for the piston position and velocity and save as a Nurbs.
References assert(), cfl, dt0, i, nurbs, orderOfAccuracy, pistonOption, pressureAndBodyForcedPistonMotion, printF(), R, rtol, ta, tFinal, and timeStep().
Referenced by update().
int PistonMotion::dirkImplicitSolve |
( |
const real |
dt, |
|
|
const real |
aii, |
|
|
const real |
tc, |
|
|
const RealArray & |
yv, |
|
|
const RealArray & |
yv0, |
|
|
RealArray & |
kv |
|
) |
| |
|
protected |
: Solve the implicit DIRK equation for kv. This is a protected routine.
This code is based on the matlab code in ??
References a0, area, bf, debug, gamma, k, mass, newtonTol, orderOfAccuracy, p0, and printF().
Referenced by timeStep().
int PistonMotion::getFlow |
( |
const real |
t, |
|
|
const real |
x, |
|
|
real & |
rhoTrue, |
|
|
real & |
uTrue, |
|
|
real & |
pTrue |
|
) |
| const |
Compute the fluid solution at a point (t,x)
References a, a0, ag, dfmin, gamma, getPiston(), gm1, gp1, gt, GT_FORCED_PISTON, p0, pg, pistonOption, pressureDrivenPistonMotion, rho0, setGlobalConstants(), specifiedPistonMotion, and tol.
Referenced by FlowSolutions::getFlowSolution(), and update().
int PistonMotion::getPiston |
( |
const real |
t, |
|
|
real & |
g, |
|
|
real & |
gt |
|
) |
| const |
Get the piston position and velocity.
References ag, G_FORCED_PISTON, GT_FORCED_PISTON, nurbs, OV_ABORT(), pg, pistonOption, pressureDrivenPistonMotion, printF(), ra, specifiedPistonMotion, and tFinal.
Referenced by getFlow(), and update().
real PistonMotion::getPosition |
( |
const real |
t | ) |
const |
Return the piston position.
References ag, G_FORCED_PISTON, nurbs, OV_ABORT(), pg, pistonOption, pressureDrivenPistonMotion, printF(), ra, specifiedPistonMotion, and tFinal.
real PistonMotion::getVelocity |
( |
const real |
t | ) |
const |
Return the piston velocity.
References ag, gt, GT_FORCED_PISTON, nurbs, OV_ABORT(), pg, pistonOption, pressureDrivenPistonMotion, printF(), ra, specifiedPistonMotion, and tFinal.
void PistonMotion::setGlobalConstants |
( |
| ) |
const |
|
protected |
int PistonMotion::timeStep |
( |
RealArray & |
yNew, |
|
|
RealArray & |
y, |
|
|
real |
t, |
|
|
real |
dt |
|
) |
| |
|
protected |
int PistonMotion::update |
( |
GenericGraphicsInterface & |
gi | ) |
|
Define the piston motion parameters.
References a0, ag, area, assert(), bf, computePistonMotion(), debug, dta, dx, gamma, getFlow(), getPiston(), gt, i, mass, newtonTol, nurbs, orderOfAccuracy, p0, pg, pistonOption, pressureAndBodyForcedPistonMotion, pressureDrivenPistonMotion, printF(), rho0, rtol, setGlobalConstants(), specifiedPistonMotion, ta, tFinal, x, and xe.
Referenced by Parameters::updateUserDefinedKnownSolution().
real PistonMotion::newtonTol |
|
protected |
NurbsMapping* PistonMotion::nurbs |
|
protected |
int PistonMotion::orderOfAccuracy |
|
protected |
real PistonMotion::tFinal |
|
protected |
The documentation for this class was generated from the following files: