|
[Sponsors] |
August 18, 2021, 02:32 |
How to change air density to zero
|
#1 |
New Member
lin
Join Date: Aug 2021
Posts: 2
Rep Power: 0 |
Hi, all
I'm very new about OpenFoam. I followed the damBreak tutorial and set flow outwards, and flow inwards. Now i wanted to change the air density to zero. But the system show error. Could anyone tell me how can I change the density to zero ? Thanks in advance. English is not my native language; please excuse typing errors. |
|
August 18, 2021, 04:30 |
|
#2 |
New Member
Niklas Boehnke
Join Date: Jul 2021
Location: Lübeck
Posts: 12
Rep Power: 5 |
hi lin,
you could try to switch the equationOfState of thermoType in thermophysicalProperties to constant rho and then specify rho as 0. |
|
August 19, 2021, 03:41 |
How to change air density to zero
|
#3 |
New Member
lin
Join Date: Aug 2021
Posts: 2
Rep Power: 0 |
Hi, janibo
thanks for your suggestions. I tried to add the thermophysicalProperties file, and also modified the nOuterCorrectors and nNonOrthogonalCorrectprs in PIMPLE, but there were still errors. I don't know what went wrong. // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 PIMPLE: No convergence criteria found PIMPLE: No corrector convergence criteria found Calculations will do 2 corrections PIMPLE: Operating solver in transient mode with 2 outer correctors Reading field p_rgh Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:? #4 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam:perator/<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<doub le, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:? #5 Foam::incompressibleTwoPhaseMixture::calcNu() at ??:? #6 Foam::incompressibleTwoPhaseMixture::incompressibl eTwoPhaseMixture(Foam::GeometricField<Foam::Vector <double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) at ??:? #7 Foam::immiscibleIncompressibleTwoPhaseMixture::imm iscibleIncompressibleTwoPhaseMixture(Foam::Geometr icField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) at ??:? #8 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/interFoam" #9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #10 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/interFoam" 浮點數例外 (核心已傾印) Could anyone tell me what I miss. I have attached all the case files at below |
|
August 19, 2021, 07:00 |
|
#4 |
Senior Member
|
||
August 19, 2021, 07:34 |
|
#5 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
A fluid with ρ=0 does not exist. You cannot calculate a flow of it.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
August 25, 2021, 08:13 |
|
#6 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14 |
From a momentum perspective, as far as the water (rho = 1000) is concerned, the difference between air (rho ~ 1) and a vacuum (rho = 0) is negligible (ignoring the fact that the water would boil). So, as has been said above, just substitute a low density gas like hydrogen for the air and it will behave like a vacuum.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Air density variation | hmasenger | CFX | 2 | November 16, 2014 06:28 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
icoFoam >> density >> kinematic viscosity for air 20°C | mgolbs | OpenFOAM Pre-Processing | 11 | February 15, 2010 11:09 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |
Air Change | Diogo Bolster | CFX | 3 | January 10, 2002 15:58 |