Saras
Finite Difference Solver for Fluid Dynamics Simulations
|
The derived class from initial to impose random initial condition for channel flow. More...
#include "lib/initial/initial.h"
Public Member Functions | |
channelRand (const grid &mesh) | |
Constructor of the initial class. More... | |
void | initializeField (vfield &uField) |
Function to impose random initial condition for channel flow on the given input velocity field. More... | |
Public Member Functions inherited from initial | |
initial (const grid &mesh) | |
Constructor of the initial class. More... | |
virtual void | initializeField (vfield &uField, sfield &tField) |
Prototype function to impose the initial conditions on the given field. More... | |
Additional Inherited Members | |
Protected Attributes inherited from initial | |
const grid & | mesh |
The derived class from initial to impose random initial condition for channel flow.
channelRand::channelRand | ( | const grid & | mesh | ) |
Constructor of the initial class.
The empty constructer merely initializes the local reference to the global mesh variable.
mesh | is a const reference to the global data contained in the grid class |
|
virtual |
Function to impose random initial condition for channel flow on the given input velocity field.
The function generates random values for the entire domain (with independent seeds for individual ranks). The random values are scaled by multiplying with an inverse parabola and then added to the mean velocity field. The mean field is assumed to have value 1.0
Reimplemented from initial.