#!/bin/bash

# Exit on error
set -e

# Source OpenFOAM environment
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Generate base mesh
runApplication blockMesh

# Run solver
runApplication icoFoam

# Export results to VTK
runApplication foamToVTK -latestTime

echo "Simulation complete. Results in VTK format."

### Change the Reynolds number in both the code and openfoam case setup according to the problem simulating.For example , if you are simulating for Re = 40 case , change the Reynolds number in the PINN code and also in constant folder in openfoam case.