CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Use direct numerical simulation on engineFoam (https://www.cfd-online.com/Forums/openfoam-solving/125151-use-direct-numerical-simulation-enginefoam.html)

Chapelle October 20, 2013 10:15

Use direct numerical simulation on engineFoam
 
Hi everyones,

I'm a new user and I'm working on the tutorial engineFoam to simulate the flow around the valves, but i need to change the Reynolds number at around 50 or 100.

For that i have to change the viscosity and the pitch of the mesh.

So i was looking at the transport properties file but i didn't found it.

If someone can explain to me how to proceed cause i really have no idea.

Thanks,

Maxime.

Chapelle October 21, 2013 14:54

Use direct numerical simulation on engineFoam
 
I make a copy of the engineFoam solver and modify the Ueq.H file like this:

PHP Code:


 fvVectorMatrix UEqn
    
(
        
fvm::ddt(rhoU)
      + 
fvm::div(phiU)
      + 
turbulence->divDevRhoReff(U)
      - 
fvm::laplacian(nuU)
    );

    if (
pimple.momentumPredictor())
    {
        
solve(UEqn == -fvc::grad(p));
        
0.5*magSqr(U);
    } 

I also rename in the folder "make " the "files" engineFoam by engineFoamdns, then i change in all the controlDict the solver name application by engineFoamdns.

I also add in combustion properties the value of nu.

But when i'm running i got an error: " can't found engineFoamdns".

If someone has an idea of the source of the problem or tell me what i'm doing wrong ?

Thanks you!

Maxime.


All times are GMT -4. The time now is 09:27.