Skip to content

Latest commit

 

History

History
51 lines (47 loc) · 1.3 KB

README.md

File metadata and controls

51 lines (47 loc) · 1.3 KB

EDM_openfoam

Eddy dissipation combustion model updated for Openfoam 9

Copy the whole src directory into user project folder:

foam
cp -r --parents src/combustionModels $WM_PROJECT_USER_DIR
cd $WM_PROJECT_USER_DIR/src/combustionModels

Download the code to the src directory:

git clone https://github.com/GontzalLopez/EDM_openfoam $WM_PROJECT_USER_DIR/src/combustionModels

Add EDM/EDM.C to Make/files using Vim

vim Make/files

Compile:

wmake

In constant/combustionProperties:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  9
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "constant";
    object      combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

combustionModel EDM;

EDMCoeffs
{
    semiImplicit    yes;
    Cdiff	          4.0;
    CEDM            4.0;
}

#include "reaction"
// ************************************************************************* //