|May 21, 2008, 08:49||
when set a pressure boundary a
when set a pressure boundary as
value uniform 1e+5;
When I run sonicLiquidFoam, I got errors:
--> FOAM FATAL IO ERROR : file "" does not exist
file: at line 1.
From function IFstream::operator()
in file db/IOstreams/Fstreams/IFstream.C at line 171.
Please enter the folder $WM_PROJECT_DIR/applications/solvers/compressible/sonicLiquidFoam/, and edit the file createFields.H, then delete the line 41:
30 volScalarField rho
40 rho0 + psi*(p-p0),
and also delete the comma at the end of the previous line (line 40).
In addition, in file sonicLiquidFoam.C, I think rho0 + psi*p in line 105 should corrected as rho0 + psi*(p-p0) in order to compute the density rightly.
P.S. I post this bug and fix in my blog, www.durun.cn/?p=364
|May 21, 2008, 09:52||
The transfer of the p BCs is a
Join Date: Mar 2009
Posts: 854Rep Power: 14
The transfer of the p BCs is a problem for complex BCs and your fix means that rho would get BCs of type "calculated" which should be OK. I will make this change in 1.5.
> In addition, in file sonicLiquidFoam.C, I think rho0 + psi*p in line 105 should corrected as rho0 + psi*(p-p0) in order to compute the density rightly.
I don't agree; note the difference between rho0 and rhoO. However for consistency rhoO + psi*p should be used on line 40 of createFields.H.
|Thread||Thread Starter||Forum||Replies||Last Post|
|TimeVaryingUniformFixedValue||holger_marschall||OpenFOAM Running, Solving & CFD||4||August 10, 2013 14:47|
|TimeVaryingUniformFixedValue BC in foam 15||nzy102||OpenFOAM Running, Solving & CFD||5||August 19, 2008 08:08|
|Why Differences between tetrahedra polyhedra and prism mesh pipe flow computation with sonicLiquidFoam||chnrdu||OpenFOAM Running, Solving & CFD||4||June 17, 2008 06:21|
|TimeVaryingUniformFixedValue does not work as a pressureInlet with sonicLiquidFoam||nishant_hull||OpenFOAM Running, Solving & CFD||5||May 21, 2008 08:54|
|TimeVaryingUniformFixedValue boundary condition||liu||OpenFOAM Running, Solving & CFD||1||October 12, 2007 13:19|