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

error bad lookup of thermophysicalProperties

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kac24

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2024, 08:00
Default error bad lookup of thermophysicalProperties
  #1
New Member
 
Karol Celinski
Join Date: Feb 2024
Location: UK
Posts: 11
Rep Power: 2
kac24 is on a distinguished road
Hi, I am having issues with this error, the way I idenify it it is that openfoam think ,my fluid (water) phase is solid. I have already spent two days trying to solve it, and now I am asking for help.

Solver used:
chtMultiRegionSimpleFoam

--> FOAM FATAL ERROR: (openfoam-2306)

bad lookup of thermophysicalProperties (objectRegistry water)
expected a solidThermo, found a heRhoThermo<pureMixture<const<hConst<rhoConst<spec ie>>,sensibleEnthalpy>>>


From const Type& Foam:bjectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam::solidThermo]
in file /home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 558.

FOAM exiting
kac24 is offline   Reply With Quote

Old   February 13, 2024, 08:29
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,067
Rep Power: 26
Yann will become famous soon enough
Hello,

How is defined your constant/regionProperties file?
Yann is offline   Reply With Quote

Old   February 13, 2024, 08:57
Default constant/regionProperties
  #3
New Member
 
Karol Celinski
Join Date: Feb 2024
Location: UK
Posts: 11
Rep Power: 2
kac24 is on a distinguished road
constant/regionProperties
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object regionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

regions
(
fluid (water)
solid (pipe)
);


// ************************************************** *********************** //
kac24 is offline   Reply With Quote

Old   February 13, 2024, 09:08
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,067
Rep Power: 26
Yann will become famous soon enough
Alright, then maybe there is something wrong in your boundary conditions.

Not sure where, but I would start by looking at the T file for water.
Yann is offline   Reply With Quote

Old   February 13, 2024, 09:22
Default
  #5
New Member
 
Karol Celinski
Join Date: Feb 2024
Location: UK
Posts: 11
Rep Power: 2
kac24 is on a distinguished road
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 333.15;
//boiler supplied 60 [degC] =333.15[K]
boundaryField
{
inlet
{
type fixedValue;
value uniform 333.15;
}

outlet
{
type inletOutlet;
inletValue uniform 333.15;
value uniform 333.15;
}

water_to_pipe
{
type compressible::turbulentTemperatureCoupledBaffleMix ed;
Tnbr T;
thicknessLayers (0.7);
kappaLayers (0.6);
kappaMethod solidThermo;
kappa kappa;
value uniform 333.15;
}


}
I see my mistake in kappaMethod

Thank you
Yann likes this.
kac24 is offline   Reply With Quote

Old   February 13, 2024, 10:36
Default
  #6
New Member
 
Karol Celinski
Join Date: Feb 2024
Location: UK
Posts: 11
Rep Power: 2
kac24 is on a distinguished road
/var/spool/slurmd/job744965/slurm_script: line 23: source: /home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/applications/solvers: is a directory


--> FOAM FATAL ERROR: (openfoam-2306)

failed lookup of phi (objectRegistry pipe)
available objects of type surfaceScalarField:
0()


From const Type& Foam:bjectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>]
in file /home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 571.

FOAM exiting
unfortunately now I am getting this error
kac24 is offline   Reply With Quote

Old   February 13, 2024, 11:26
Default
  #7
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,067
Rep Power: 26
Yann will become famous soon enough
It could be a function object issue, but there is not enough information in your post to really know.
Yann is offline   Reply With Quote

Old   February 14, 2024, 10:36
Default
  #8
New Member
 
Karol Celinski
Join Date: Feb 2024
Location: UK
Posts: 11
Rep Power: 2
kac24 is on a distinguished road
My case is attached
Attached Files
File Type: zip copper.zip (98.6 KB, 2 views)
kac24 is offline   Reply With Quote

Old   February 14, 2024, 10:59
Default
  #9
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,067
Rep Power: 26
Yann will become famous soon enough
Hello,

I don't know if this is the actual case you are running but I am not able to reproduce your error with the files you provided so I cannot really help.

Yann
Yann 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
OpenFoam restarting simulation, stops at first Time loop syntex OpenFOAM Running, Solving & CFD 4 April 5, 2019 11:20
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 05:25
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 27 December 19, 2017 20:47
Convergence on anisotropic tetahedral meshes pbo OpenFOAM Running, Solving & CFD 12 December 14, 2010 11:59
Buoyancydriven cavity flow anita OpenFOAM Running, Solving & CFD 3 March 26, 2008 10:24


All times are GMT -4. The time now is 13:18.