Saras
Finite   Difference   Solver   for   Fluid   Dynamics   Simulations
Public Member Functions | List of all members
randomForcing Class Reference

The derived class from force to add random forcing to the velocity field. More...

#include "lib/force/force.h"

Inheritance diagram for randomForcing:
force

Public Member Functions

 randomForcing (const grid &mesh, vfield &U)
 
void addForcing (plainvf &Hv)
 Prototype function to add the forcing field to a plain vector field. More...
 
void addForcing (plainsf &Ht)
 Prototype function to add the forcing field to a plain scalar field. More...
 
- Public Member Functions inherited from force
 force (const grid &mesh, vfield &U)
 Constructor of the force class. More...
 

Additional Inherited Members

- Protected Attributes inherited from force
const gridmesh
 
vfieldV
 

Detailed Description

The derived class from force to add random forcing to the velocity field.

Member Function Documentation

◆ addForcing() [1/2]

void randomForcing::addForcing ( plainsf Ht)
inlinevirtual

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.
Parameters
Htis a reference to the plain scalar field to which the forcing term is to be added (RHS of the temperature equation)

Reimplemented from force.

◆ addForcing() [2/2]

void randomForcing::addForcing ( plainvf Hv)
inlinevirtual

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.
Parameters
Hvis a reference to the plain vector field to which the forcing term is to be added (RHS of the NSE)

Reimplemented from force.


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