|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Apr 2023
Posts: 3
Rep Power: 4 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
New Member
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2 ![]() |
Quote:
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; } |
||
![]() |
![]() |
![]() |
![]() |
#5 | |
New Member
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2 ![]() |
Quote:
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. |
||
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 54
Rep Power: 7 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
|
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 . |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
New Member
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2 ![]() |
Quote:
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 thermo ![]() h p T AoV thermo:rho thermo:alpha ) From const Type& Foam: ![]() in file ./src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 571. FOAM exiting Last edited by uygar; March 14, 2025 at 09:34. |
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,298
Rep Power: 30 ![]() ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#11 | |
New Member
Hüseyin Uygar KARTAL
Join Date: Mar 2025
Posts: 7
Rep Power: 2 ![]() |
Quote:
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. |
||
![]() |
![]() |
![]() |
![]() |
#12 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,298
Rep Power: 30 ![]() ![]() |
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 |
|
![]() |
![]() |
![]() |
Tags |
chtmultiregionfoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |