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

Example demonstrating premixed combustion using HiPS and Cantera. More...

#include "hips.h"
#include "cantera/base/Solution.h"
#include "cantera/thermo.h"
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Example demonstrating premixed combustion using HiPS and Cantera.

This example simulates turbulent premixed flames using a stoichiometric ethylene/air mixture. It initializes a HiPS domain with six levels, where 25% of the parcels are pre-combusted, and the remaining 75% contain fresh reactants. The simulation uses Cantera to handle chemical kinetics.

Compilation:

cd build
cmake .. -DREACTIONS_ENABLED=ON
make
sudo make install

Execution:

cd ../run
./ex_2.x

Output:

The simulation produces temperature and species concentration profiles, saved in the output file.

Dependencies:

  • HiPS library (compiled with reaction support)
  • Cantera library (for chemical kinetics)

Definition in file ex_2.cc.

Function Documentation

◆ main()

int main ( )

Definition at line 46 of file ex_2.cc.