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

having problems with chtMultiRegionFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By uygar
  • 1 Post By dlahaye

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2025, 02:31
Unhappy having problems with chtMultiRegionFoam
  #1
New Member
 
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2
uygar is on a distinguished road
Hello everyone,

I am currently working on a laminar, time-dependent, compressible case with inlets, outlets, and solid regions that cool down over time. Even though I defined the objects as solids in the regionProperties file, OpenFOAM still asks for p_rgh and p files for the solid regions. From what I understand, pressure files shouldn’t be necessary for solids.

I even tried adding the files it asked for — it worked for the p file, but not for the p_rgh file.

What might I be missing?
uygar is offline   Reply With Quote

Old   March 13, 2025, 05:50
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 845
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
Not sure.

How do you specify the thermodynamics on the solid domain?
dlahaye is offline   Reply With Quote

Old   March 13, 2025, 12:43
Default
  #3
New Member
 
Join Date: Apr 2023
Posts: 3
Rep Power: 4
powabna is on a distinguished road
Hey,
For what I know it should be working with only T for solids.. an here's a proof: link

Have you checked the log file for splitMeshRegions?
Maybe for some reason geometry haven't been splitted as you intended?


Edit: p for solids is needed if you model more mechanical cases (deformation, thermal expansion etc.)

Last edited by powabna; March 13, 2025 at 18:32.
powabna is offline   Reply With Quote

Old   March 14, 2025, 01:23
Default
  #4
New Member
 
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2
uygar is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Not sure.

How do you specify the thermodynamics on the solid domain?
Thank you for your response,

I hope I didn't misunderstand. Here is my solid's thermoPhysicalProperties file:


thermoType
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
dlahaye likes this.
uygar is offline   Reply With Quote

Old   March 14, 2025, 01:30
Default
  #5
New Member
 
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2
uygar is on a distinguished road
Quote:
Originally Posted by powabna View Post
Hey,
For what I know it should be working with only T for solids.. an here's a proof: link

Have you checked the log file for splitMeshRegions?
Maybe for some reason geometry haven't been splitted as you intended?


Edit: p for solids is needed if you model more mechanical cases (deformation, thermal expansion etc.)
Thank you for your response,

Yes, I think the problem is not about my mesh. Because when I run checkMesh -allTopology -allGeometry here is the response:

CellZone Cells Points Volume
fluid 128182 34535 498.82439
pat3 11587 2882 73.728
evap 20072 6861 3.0592566
pat5 10280 2668 73.728
pat6 10542 2715 73.728
pat4 10305 2673 73.728
pat1 11788 2914 73.728
pat2 11825 2923 73.728

I actually dont want my solids to expand or anything I only want them to cool down over time.
uygar is offline   Reply With Quote

Old   March 14, 2025, 02:08
Default
  #6
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 845
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
thermo looks fine. Do not have other clues immediately. Sorry.
dlahaye is offline   Reply With Quote

Old   March 14, 2025, 04:34
Default
  #7
Member
 
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 54
Rep Power: 7
Lorenzo210 is on a distinguished road
Hi,


I think that heSolidThermo needs a "p" field for its member functions to be called.

In particular, I am referring to "calculate" in line 40 of the following:
https://www.openfoam.com/documentati...8C_source.html


So, I guess pressure is needed, but not necessarily used in the computations, and that's the reason why the pressure field needs to be defined in the 0 folder.


I looked at some tutorials in v2406 and all the solid regions I found have both T and p in the 0 folder.



I am not really aware of the calculations happening for what concerns the thermophysical properties... in order to be completely sure of what's happening, you might try to set different values/conditions for pressure in the solid and see if something changes!



Cheers,
Lorenzo
Lorenzo210 is offline   Reply With Quote

Old   March 14, 2025, 05:47
Default
  #8
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 845
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
Correct.

The solver solves for sensible enthalpy in the solid domain. To recover temperature from enthalpy, a value for pressure including the boundary is required. Hence the need for 0/solid/p .
Lorenzo210 likes this.
dlahaye is offline   Reply With Quote

Old   March 14, 2025, 07:18
Default
  #9
New Member
 
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2
uygar is on a distinguished road
Quote:
Originally Posted by Lorenzo210 View Post
Hi,


I think that heSolidThermo needs a "p" field for its member functions to be called.

In particular, I am referring to "calculate" in line 40 of the following:
https://www.openfoam.com/documentati...8C_source.html


So, I guess pressure is needed, but not necessarily used in the computations, and that's the reason why the pressure field needs to be defined in the 0 folder.


I looked at some tutorials in v2406 and all the solid regions I found have both T and p in the 0 folder.



I am not really aware of the calculations happening for what concerns the thermophysical properties... in order to be completely sure of what's happening, you might try to set different values/conditions for pressure in the solid and see if something changes!



Cheers,
Lorenzo
Thank you for your response,

I tried creating a file for p, but after that, it asked for a p_rgh file. I also created a file for that, but it still didn't work. I just keep getting this error:

--> FOAM FATAL ERROR: (openfoam-2212 patch=230612)

failed lookup of p_rgh (objectRegistry evap)
available objects of type volScalarField:

11
(
interRegionHeatTransferModel:htc
htcConst
thermo:mu
betavSolid
thermosi
h
p
T
AoV
thermo:rho
thermo:alpha
)



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

FOAM exiting

Last edited by uygar; March 14, 2025 at 09:34.
uygar is offline   Reply With Quote

Old   March 14, 2025, 07:51
Default
  #10
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,298
Rep Power: 30
Yann will become famous soon enoughYann will become famous soon enough
Hello,

Could you post the full log so we can see what is going on when you get this error?

Do you have any function objects in controlDict which might try to access p_rgh in the solids?
Yann is offline   Reply With Quote

Old   March 17, 2025, 01:20
Talking
  #11
New Member
 
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2
uygar is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,

Could you post the full log so we can see what is going on when you get this error?

Do you have any function objects in controlDict which might try to access p_rgh in the solids?
Thank you for your response,

But I managed to solve the problem. Apparently, it was about the 0/fluid/p and p_rgh files. It was like this:

fluid_to_pat
{
type fixedValue;
value uniform 101325;
}

I changed it to type zeroGradient
and it proceeded.
uygar is offline   Reply With Quote

Old   March 17, 2025, 04:58
Default
  #12
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,298
Rep Power: 30
Yann will become famous soon enoughYann will become famous soon enough
Hello,

In a CHT case, you should have boundary conditions on p set to calculated, and use fixedFluxPressure rather than zeroGradient on walls for p_rgh.
(Have a look at the tutorials to see how boundary conditions are defined on p and p_rgh)

Cheers,
Yann
Yann is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[solids4Foam] Problems while validating Turek and Hron (2006) FSI2 and FSI3 problems in solids4Foam subhasisa.rath OpenFOAM CC Toolkits for Fluid-Structure Interaction 0 September 6, 2021 16:37
What is the reason for the lack of convergence in solving thermodynamic problems? NoITMan Main CFD Forum 0 May 25, 2021 06:52
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
Problems with chtMultiregionFoam JaimeFdz OpenFOAM Running, Solving & CFD 3 December 20, 2019 08:06
problems with probes() function in chtMultiRegionFoam Victor OpenFOAM 0 November 25, 2009 15:08


All times are GMT -4. The time now is 10:24.