CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Simulating the release of a gas in the air (

goncabrita June 20, 2012 14:00

Simulating the release of a gas in the air
Hi everyone!

I'm new at OpenFOAM and my experience with CFD is close to zero! Also my knowledge of fluid mechanics is very basic!!

I've been going through the OpenFOAM tutorials, documentation and the forums and I've managed to get Gmsh to generate a mesh of my environment.

The next step is to choose a solver for my problem. As the title says I intend to simulate the release of different gaseous chemicals in the air (not very interested in a particular chemical, more in the way the chemical moves in the air). Which solvers can I use for this case?

If anyone could provide me with a simple example case I would be extremely grateful as I have no idea how to setup the files for the starting conditions. If I could get something to use as a starting point it would be very helpful.

Best regards, and thanks in advance!!!

goncabrita June 25, 2012 10:58

Hi everyone! Just an update...

I'm trying to use sprayFoam without the combustion to accomplish my simulation. Is this correct?

goncabrita June 28, 2012 11:26

Hi Foamers!

So I've been making some progresses but I still can't run a simulation!

I was having some troubles with temperatures which dissapeared after I found this thread:

So I changed Laplacian schemes and generated a thinner mesh. Right now sprayFoam is crashing with the following error:

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/"
#2 Uninterpreted:
#3 Foam::fv::gaussGrad<double>::gradf(Foam::Geometric Field<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::word const&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/"
#4 Foam::fv::gaussGrad<double>::calcGrad(Foam::Geomet ricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) const in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/"
#5 Foam::fv::gradScheme<double>::grad(Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) const in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/sprayFoam"
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/sprayFoam"
#7 Foam::tmp<Foam::GeometricField<Foam::outerProduct< Foam::Vector<double>, double>::type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::grad<double>(Foam::GeometricField<doubl e, Foam::fvPatchField, Foam::volMesh> const&) in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/sprayFoam"
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/sprayFoam"
#9 __libc_start_main in "/lib/i386-linux-gnu/"
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/sprayFoam"
Floating point exception (core dumped)

Could anyone help me out? What information should I provide to help solve this problem?

Best regards and thanks in advance!!!

All times are GMT -4. The time now is 16:52.