CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to change air density to zero

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By shereez234
  • 2 Post By piu58

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2021, 01:32
Default How to change air density to zero
  #1
New Member
 
lin
Join Date: Aug 2021
Posts: 2
Rep Power: 0
pinpin is on a distinguished road
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.
pinpin is offline   Reply With Quote

Old   August 18, 2021, 03:30
Default
  #2
New Member
 
Niklas Boehnke
Join Date: Jul 2021
Location: Lübeck
Posts: 12
Rep Power: 4
janibo is on a distinguished road
hi lin,

you could try to switch the equationOfState of thermoType in thermophysicalProperties
to constant rho and then specify rho as 0.
janibo is offline   Reply With Quote

Old   August 19, 2021, 02:41
Default How to change air density to zero
  #3
New Member
 
lin
Join Date: Aug 2021
Posts: 2
Rep Power: 0
pinpin is on a distinguished road
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
Attached Files
File Type: zip case5-4.zip (9.1 KB, 1 views)
pinpin is offline   Reply With Quote

Old   August 19, 2021, 06:00
Default
  #4
Senior Member
 
shereez234's Avatar
 
M Sereez
Join Date: Jan 2014
Location: England
Posts: 352
Blog Entries: 1
Rep Power: 13
shereez234 is on a distinguished road
Quote:
Originally Posted by pinpin View Post


Could anyone tell me what I miss.
I have attached all the case files at below
I think you have a division by zero error while calculating nu.
Does the case work if you have rho=1e-10 or some other value?
HappyS5 likes this.
shereez234 is offline   Reply With Quote

Old   August 19, 2021, 06:34
Default
  #5
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
A fluid with ρ=0 does not exist. You cannot calculate a flow of it.
arjun and HappyS5 like this.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   August 25, 2021, 07:13
Default
  #6
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
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.
Tobermory is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Air density variation hmasenger CFX 2 November 16, 2014 05:28
Radiation interface hinca CFX 15 January 26, 2014 17:11
icoFoam >> density >> kinematic viscosity for air 20°C mgolbs OpenFOAM Pre-Processing 11 February 15, 2010 10:09
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
Air Change Diogo Bolster CFX 3 January 10, 2002 14:58


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