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

Error with rhocentralFoam(request for volScalarField)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2020, 07:05
Unhappy Error with rhocentralFoam(request for volScalarField)
  #1
New Member
 
Jason.H
Join Date: Dec 2018
Posts: 13
Rep Power: 8
gns4566 is on a distinguished road
Hello, I solve for the problem which is for supersonic flow with rhoCentralfoam

with Spalart-allmars model

when I running my case,

I get this error.

--> FOAM FATAL ERROR:

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

19
(
thermo:mu
thermosi
rhoE_0
nut
yWall
rPsi
rho
nuTilda
thermosi_0
e_0
alphat
rho_0
p
T
rhoE
e
c
muEff
thermo:alpha
)


From function const Type& Foam:bjectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>]
in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam:bjectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const at ??:?
#3 Foam::totalPressureFvPatchScalarField::updateCoeff s(Foam::Field<double> const&, Foam::Field<Foam::Vector<double> > const&) at ??:?
#4 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::evaluate() in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/rhoCentralFoam"
#5 ? in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/rhoCentralFoam"
#6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7 ? in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/rhoCentralFoam"
Aborted (core dumped)



I don't know exactly what is the problem like such as boundary condition or initial condition

please help me.
Attached Images
File Type: png Screenshot from 2020-05-09 19-00-43.png (116.7 KB, 19 views)
gns4566 is offline   Reply With Quote

Old   May 9, 2020, 07:18
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi,

Your simulation tries to access "phi" field which is not exist. Instead "thermo : psi" is available. Replace "phi" with "thermo : psi" in your simulation settings. You will see that it was offered as an available field (the second within the available field list).

Hope it helps.

PS: Please remove the whitespace within "thermo : psi", if i write without whitespace it creates an emoji.
HPE is offline   Reply With Quote

Old   May 9, 2020, 07:23
Default
  #3
New Member
 
Jason.H
Join Date: Dec 2018
Posts: 13
Rep Power: 8
gns4566 is on a distinguished road
Thank you for answering.

I'm not familiar with openfoam

as I known, I set psi only for pressure boundary condition

because I use total pressure condition.

so you mean I should change psi to thermopsi?

is it right?

inlet
{
type totalPressure;
rho rho;
psi psi;
gamma 1.4;
p0 uniform 10000;
value uniform 10000;
}
gns4566 is offline   Reply With Quote

Old   May 9, 2020, 07:31
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Yes, please.

From

Code:
psi psi;
to

Code:
psi thermo:psi;
HPE is offline   Reply With Quote

Old   May 9, 2020, 07:34
Thumbs up
  #5
New Member
 
Jason.H
Join Date: Dec 2018
Posts: 13
Rep Power: 8
gns4566 is on a distinguished road
Thank you so much. it really helps for me!!
gns4566 is offline   Reply With Quote

Old   May 9, 2020, 07:37
Default
  #6
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
pleasure - and good luck.
HPE is offline   Reply With Quote

Old   July 23, 2020, 13:09
Default example of rhoCentralFoam with turbulence model
  #7
New Member
 
Febriyan Prayoga
Join Date: Apr 2016
Location: Seoul
Posts: 21
Rep Power: 10
febriyan91 is on a distinguished road
Quote:
Originally Posted by gns4566 View Post
Thank you so much. it really helps for me!!
Hello, I am new to OpenFOAM. Would you please share your simulation case file? I am exploring OpenFOAM and I am stucked while trying to implement turbulence model in rhoCentralFoam application since there are no example in rCF with turbulence model case.

Regards,
febriyan91 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



All times are GMT -4. The time now is 11:58.