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

The derived class from initial to impose random initial condition for channel flow. More...

#include "lib/initial/initial.h"

Inheritance diagram for channelRand:
initial

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 gridmesh
 

Detailed Description

The derived class from initial to impose random initial condition for channel flow.

Constructor & Destructor Documentation

◆ channelRand()

channelRand::channelRand ( const grid mesh)

Constructor of the initial class.

     The empty constructer merely initializes the local reference to the global mesh variable.
Parameters
meshis a const reference to the global data contained in the grid class

Member Function Documentation

◆ initializeField()

void channelRand::initializeField ( vfield uField)
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.


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