CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   interFoam inviscid and rotational (

pablodecastillo January 28, 2011 15:51

interFoam inviscid and rotational

Is it possible run interFoam inviscid but rotational (euler equations)?


daveatstyacht January 28, 2011 16:15

Consider using "twoPhaseEulerFoam". I have never used it myself other than running the tutorials for it, but it might be what you are looking for. I am interested in the use of it, but I need a dynamic mesh version of it for it to be useful for my purposes. There are a couple of tutorials that use it so you can probably look at the files for those to figure out the setup.

pablodecastillo January 28, 2011 16:48

and what about to delete from interFoam scheme turbulence/viscous effects?. It is nonsense or i can try this weekend?

daveatstyacht January 28, 2011 19:56

I suspect that it isn't as straight forward as setting the viscosity to zero since you have to contend with the effective viscosity of the turbulence model. I don't believe interFoam runs without the ras settings used. I don't believe it will cut your computation times down unless you can remove the turbulence parts of interFoam which would require altering the interFoam solver itself to eliminate the Reynolds stress term and if you are doing that you might as well remove the viscosity term too. You might be able to get it to run using the dummy turbulence model "laminar", but I think it would be easier to try the twoPhaseEulerFoam since it is a volume of fraction solver like interfoam, but it is solving the Euler equations instead of the full RANS. It comes in the standard 1.7.1 version and setting up the run should be straight forward.

pablodecastillo January 29, 2011 06:11

My idea is build a new solver based in interFoam, so it is delete diffusive terms from UEqn.h and turbulence->correct(); from interFoam.

UEqn will be like;

fvVectorMatrix UEqn
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)

pablodecastillo January 31, 2011 08:54

Hi Dave,

Now i have the inviscid working in multiphase, so it is more easy to see the influence of compression interface, momentumPredictor, corrections etc.... in the accurate and speed results.
I want to implement trim&sink function, do you known if shipFoam is based in move the whole domain or mesh deformation?

Betsy June 15, 2012 18:42

HI Pablo - Have you had success with your new inviscid solver? I am thinking of doing the same thing so I can solver two-phase Euler eqns.

pablodecastillo June 16, 2012 08:15

Yes, inviscid euler is pretty easy to implement, just remove the viscous terms from equations and turbulence.

All times are GMT -4. The time now is 05:08.