hips
Loading...
Searching...
No Matches
ex_1.cc File Reference

Example demonstrating scalar mixing dynamics using HiPS. More...

#include <iostream>
#include <vector>
#include "hips.h"

Go to the source code of this file.

Functions

vector< double > initializeMixingFractions (int numParcels)
 
int main ()
 

Detailed Description

Example demonstrating scalar mixing dynamics using HiPS.

This example illustrates the basic behavior of scalar mixing dynamics. Fluid parcels are initially divided into two groups (0 and 1) and then mix over time to form a uniform scalar field. The example uses the HiPS model to demonstrate how Schmidt numbers affect mixing dynamics.

Compilation:

cd build
cmake ..
make
sudo make install

Execution:

cd ../run
./ex_1.x

Output:

The simulation produces scalar concentration profiles stored in the output file.

Definition in file ex_1.cc.

Function Documentation

◆ initializeMixingFractions()

vector< double > initializeMixingFractions ( int numParcels)

Definition at line 38 of file ex_1.cc.

◆ main()

int main ( )

Definition at line 48 of file ex_1.cc.