Saras
Finite Difference Solver for Fluid Dynamics Simulations
|
Contains all the global variables related to the imposing of forcing, and associated functions. More...
#include "lib/force/force.h"
Public Member Functions | |
force (const grid &mesh, vfield &U) | |
Constructor of the force class. More... | |
virtual void | addForcing (plainvf &Hv) |
Prototype function to add the forcing field to a plain vector field. More... | |
virtual void | addForcing (plainsf &Ht) |
Prototype function to add the forcing field to a plain scalar field. More... | |
Protected Attributes | |
const grid & | mesh |
vfield & | V |
Contains all the global variables related to the imposing of forcing, and associated functions.
Constructor of the force class.
The empty constructor merely initializes the local reference to the global mesh variable and vector field for velocity. The velocity vector field is used for its interpolation slices to be used in calculating forcing terms.
mesh | is a const reference to the global data contained in the grid class |
U | is a reference to the velocity vector field |
|
virtual |
Prototype function to add the forcing field to a plain scalar field.
Based on the values of Fb, Fr, and other constants as applicable, the appropriate forcing field is calculated and added to the input plain field.
Ht | is a reference to the plain scalar field to which the forcing term is to be added (RHS of the temperature equation) |
Reimplemented in coriolisForce, buoyantForce, rotatingConv, randomForcing, constantPGrad, and zeroForcing.
|
virtual |
Prototype function to add the forcing field to a plain vector field.
Based on the values of Fb, Fr, and other constants as applicable, the appropriate forcing field is calculated and added to the input plain field.
Hv | is a reference to the plain vector field to which the forcing term is to be added (RHS of the NSE) |
Reimplemented in coriolisForce, buoyantForce, rotatingConv, randomForcing, constantPGrad, and zeroForcing.