Difference between revisions of "The On Ramp/Level 1/Solve (Compressible)"

From PHASTA Wiki
Jump to: navigation, search
Line 1: Line 1:
This guide is for running '''compressible''' PHASTA simulations. 
 
If you are working on an '''incompressible''' simulation, please see [[Level 1 Solve]].
 
 
 
==Overview==
 
==Overview==
 
This page walks you through the process of configuring, compiling, and identifying the correct executable for running compressible PHASTA simulations. These steps assume you have generated and partitioned a mesh using [[Prepping the Grid for Chef]] and [[The On Ramp/Level 1/Partition]].
 
This page walks you through the process of configuring, compiling, and identifying the correct executable for running compressible PHASTA simulations. These steps assume you have generated and partitioned a mesh using [[Prepping the Grid for Chef]] and [[The On Ramp/Level 1/Partition]].

Revision as of 23:22, 2 June 2025

Overview

This page walks you through the process of configuring, compiling, and identifying the correct executable for running compressible PHASTA simulations. These steps assume you have generated and partitioned a mesh using Prepping the Grid for Chef and The On Ramp/Level 1/Partition.

Building PHASTA for Compressible Simulations

Use the following script to configure and compile PHASTA with compressible physics enabled. This ensures that both compressible and incompressible functionalities are available.

#!/bin/bash

Target=Example_Build
mkdir Example_Build
rm -r $Target/*
cd $Target

export PKG_CONFIG_PATH=/users/skinnerr/tools/git-petsc/build_ompi210_gnu63/lib/pkgconfig/

cmake \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_Fortran_COMPILER=gfortran \
-DCMAKE_BUILD_TYPE=Debug \
-DPHASTA_INCOMPRESSIBLE=ON \
-DPHASTA_COMPRESSIBLE=OFF \
-DPHASTA_USE_LESLIB=ON \
-DLESLIB=/users/matthb2/libles1.5/libles-debianjessie-gcc-ompi.a \
-DCASES=/home/mrasquin/develop-phasta/phastaChefTests \
-DPHASTA_TESTING=OFF \
../../phasta-next/

make -j8
echo "Target: $Target"
date

After compilation, confirm that the compressible PHASTA executable has been built: