CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Simulating the release of a gas in the air (http://www.cfd-online.com/Forums/openfoam-solving/103559-simulating-release-gas-air.html)

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: http://www.cfd-online.com/Forums/ope...naf-range.html

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/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#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/libfiniteVolume.so"
#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/libfiniteVolume.so"
#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"
#6
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"
#8
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/sprayFoam"
#9 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#10
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.