CG  Version 25
Macros | Functions
PistonMotion.C File Reference

Define piston motions for moving grid exact solutions. More...

#include "PistonMotion.h"
#include "PlotStuff.h"
#include "NurbsMapping.h"
#include "GenericGraphicsInterface.h"
#include "display.h"
Include dependency graph for PistonMotion.C:

Macros

#define dfmin   EXTERN_C_NAME(dfmin)
 
#define G_FORCED_PISTON(t)   ( (-1./cc1)*( (t) - (cc2-1.)/(cc2-2.)/(cc3*cc5)*(pow( 1.+cc3*cc5*(t), (cc2-2.)/(cc2-1.) ) -1. ) ) )
 
#define GT_FORCED_PISTON(t)   ( (-1./cc1)*( 1. - pow( 1.+cc3*cc5*(t), (-1.)/(cc2-1.) ) ) )
 
#define CHARACTERISTIC_FORCED_PISTON(tau)   ( G_FORCED_PISTON(tau) + (cc6+cc7*GT_FORCED_PISTON(tau))*(cc8-(tau))+cc9 )
 

Functions

real dfmin (real(*f)(const real &), real &x, real &a, real &b, const real &tol)
 

Detailed Description

Define piston motions for moving grid exact solutions.

Macro Definition Documentation

#define CHARACTERISTIC_FORCED_PISTON (   tau)    ( G_FORCED_PISTON(tau) + (cc6+cc7*GT_FORCED_PISTON(tau))*(cc8-(tau))+cc9 )
#define dfmin   EXTERN_C_NAME(dfmin)
#define G_FORCED_PISTON (   t)    ( (-1./cc1)*( (t) - (cc2-1.)/(cc2-2.)/(cc3*cc5)*(pow( 1.+cc3*cc5*(t), (cc2-2.)/(cc2-1.) ) -1. ) ) )
#define GT_FORCED_PISTON (   t)    ( (-1./cc1)*( 1. - pow( 1.+cc3*cc5*(t), (-1.)/(cc2-1.) ) ) )

Function Documentation

real dfmin ( real(*)(const real &)  f,
real &  x,
real &  a,
real &  b,
const real &  tol 
)