CG
Version 25
|
Define piston motions for moving grid exact solutions. More...
#include "PistonMotion.h"
#include "PlotStuff.h"
#include "NurbsMapping.h"
#include "GenericGraphicsInterface.h"
#include "display.h"
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) |
Define piston motions for moving grid exact solutions.
#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. ) ) ) |
Referenced by PistonMotion::getPiston(), and PistonMotion::getPosition().
#define GT_FORCED_PISTON | ( | t | ) | ( (-1./cc1)*( 1. - pow( 1.+cc3*cc5*(t), (-1.)/(cc2-1.) ) ) ) |
Referenced by PistonMotion::getFlow(), PistonMotion::getPiston(), and PistonMotion::getVelocity().
real dfmin | ( | real(*)(const real &) | f, |
real & | x, | ||
real & | a, | ||
real & | b, | ||
const real & | tol | ||
) |