CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

problems when using sonicFoam with subsonic inlet BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2015, 06:50
Default problems when using sonicFoam with subsonic inlet BC
  #1
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Hi

I am using sonicFoam with a subsonic inletBC, since the top inlet in the y direction is subsonic.
pressure
top
{
type totalPressure;
p0 uniform 6e5;
phi phi;
rho none;
psi psi;
gamma 1.4;
}
temperature
type totalTemperature;
T0 uniform 300;
gamma 1.4;
velocity
top
{
type zeroGradient;
}
But when running , some errors happen like this:
---------------------------------------------------------------------------------------------
--> FOAM FATAL ERROR:

request for volScalarField psi from objectRegistry region0 failed
available objects of type volScalarField are

17
(
thermo:mu
thermosi
K
K_0
rho
k
(1|A(U))
thermosi_0
e_0
alphat
rho_0
p
T
e
mut
epsilon
thermo:alpha
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/openfoam/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.
-------------------------------------------------------------------------------------------------------
Is there anyone facing the same problems?
JasonWang3 is offline   Reply With Quote

Old   June 20, 2015, 21:56
Default
  #2
New Member
 
Matei Petrescu
Join Date: Jun 2013
Location: Montreal, Canada
Posts: 5
Rep Power: 13
mateiu2003k is on a distinguished road
Hi Xinguang,

I faced the same problem but in an opposite manner. Depending on the OF version keyword's values are changing. So from OF 2.1.x to OF 2.2.x for the keyword psi the value changed from psi to thermosi (my guess). The error message the you got is very similar to mine. From the choices given I recognize thermosi which I use without trouble for sonicFoam in OF 2.2.x but when I have tried it in OF 2.1.x on my old laptop it bugged and got a similar error message to yours ->

--> FOAM FATAL ERROR:

request for volScalarField thermosi from objectRegistry region0 failed
available objects of type volScalarField are

12
(
psi
rho
psi_0
(1|A(U))
(rho*(1|A(U)))
e_0
alpha
rho_0
p
T
e
mu
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 131.




Let me know if this fixes your problem.

Best,
Matei.
mateiu2003k is offline   Reply With Quote

Old   June 22, 2015, 05:55
Default
  #3
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Hi Matei

I have not found how to solve this situation. Instead, I use the static pressure and temperature, and my results seem good now.

Best,
Xinguang
JasonWang3 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
inlet boundary conditions for subsonic flow paulzhang Main CFD Forum 1 June 27, 2021 00:47
Laval Nozzle sonicFoam inlet and outlet bc BernhardGrieser OpenFOAM Running, Solving & CFD 10 February 16, 2017 08:45
Difficult inlet position causing problems... Roblad Phoenics 1 February 9, 2012 15:45
Problems modeling subsonic engine air inlet with flow separation TWaung CFX 2 March 29, 2009 19:42
How to set subsonic inlet with fixed Mach number QU KUN Main CFD Forum 0 September 6, 2003 10:47


All times are GMT -4. The time now is 21:33.