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

chtmultiregionSimplefoam error !!

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By TGS
  • 1 Post By TGS

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2013, 12:26
Default chtmultiregionSimplefoam error !!
  #1
Member
 
Samer
Join Date: Jan 2013
Posts: 31
Rep Power: 13
SamerAli is on a distinguished road
hi all
i am trying the tutorial case of multiRegionHeater and whenever i execute splitMeshRegions -cellZones -overwrite
i get the Following Error:

Create time

Create mesh for time = 0

Trying to match regions to existing cell zones.


Number of regions:5

Writing region per cell file (for manual decomposition) to "/home/samer/OpenFOAM/samer-1.6-ext/run/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/cellToRegion"

Writing region per cell as volScalarField to "/home/samer/OpenFOAM/samer-1.6-ext/run/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/cellToRegion"

Region Cells
------ -----
0 1460
1 130
2 80
3 130
4 1200

Region Zone Name
------ ---- ----
0 4 bottomAir
1 0 leftSolid
2 3 heater
3 2 rightSolid
4 1 topAir

Sizes inbetween regions:

Region Region Faces
------ ------ -----
0 3 130
3 4 130
0 1 130
2 4 40
2 3 10
1 2 10
0 2 92
1 4 130

Reading volScalarField K
Reading volScalarField rho
Reading volScalarField cellToRegion
Reading volScalarField p
Reading volScalarField T
Reading volScalarField k
Reading volScalarField cp
Reading volScalarField epsilon
Reading volVectorField U


Adding patches


Adding patches

Inserting patch bottomAir_to_rightSolid to slot 6 out of 6
--> FOAM Warning :
From function gAverage(const UList<Type>&)
in file /home/samer/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/FieldFunctions.C at line 524
empty field, returning zero.


--> FOAM FATAL ERROR:

request for polyMesh rightSolid from objectRegistry multiRegionHeater failed
available objects of type polyMesh are

1
(
region0
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/samer/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 140.

FOAM aborting

Aborted (core dumped)

Can you help me with this? I am new to OpenFoam and my objective after is to implement the temperature coupling to an FSI solver.....
SamerAli is offline   Reply With Quote

Old   September 6, 2013, 15:34
Default
  #2
New Member
 
DanAndrea87's Avatar
 
Andrea Prestigiacomo
Join Date: Jun 2013
Location: Milan
Posts: 10
Rep Power: 12
DanAndrea87 is on a distinguished road
Hi Samer.
Just today I've encountered the same error during a simulation for my thesis work...
Have you finally found a solution?
Thank you
DanAndrea87 is offline   Reply With Quote

Old   September 7, 2013, 09:36
Default
  #3
Member
 
Samer
Join Date: Jan 2013
Posts: 31
Rep Power: 13
SamerAli is on a distinguished road
well i worked on another strategy, but i think the solution to this problem is to change the neighbour region type in the dictionary file from fluid to region0, it will work, try it and see...
SamerAli is offline   Reply With Quote

Old   September 8, 2013, 07:15
Default
  #4
New Member
 
DanAndrea87's Avatar
 
Andrea Prestigiacomo
Join Date: Jun 2013
Location: Milan
Posts: 10
Rep Power: 12
DanAndrea87 is on a distinguished road
Ok, I'll try it...
Thank you
DanAndrea87 is offline   Reply With Quote

Old   September 19, 2019, 06:41
Default
  #5
Member
 
Vishnu
Join Date: May 2019
Location: Tamilnadu, India
Posts: 55
Rep Power: 6
Vishsel is on a distinguished road
Hi all,

As for as now i have only solid body. My case is Incompressible, Heat transfer, Steady state.

I need to create heat flux on the surface of the solid body (@wall). And my inputs are heat flux (W/m²) for surface or (W/m³) for body.


And while running chtMultiRegionSimpleFoam solver.. I am facing this error

Code:
Solving for solid region solid


--> FOAM FATAL ERROR:

    gradientInternalCoeffs cannot be called for a calculatedFvPatchField
    on patch wall-cp-2 of field h in file 
    probably trying to solve for a field with a default boundary condition.

    From function calculatedFvPatchField<Type>::gradientInternalCoeffs() const
    in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 199.

FOAM exiting


This is my solveSolid.H file

Code:
{
    for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
    {
        fvScalarMatrix hEqn
        (
            (
                thermo.isotropic()
                ? -fvm::laplacian(betav*thermo.alpha(), h, "laplacian(alpha,h)")
                : -fvm::laplacian(betav*tAnialpha(), h, "laplacian(alpha,h)")
            )
          ==
            fvOptions(rho, h)
        );

        hEqn.relax();

        fvOptions.constrain(hEqn);

        hEqn.solve();

        fvOptions.correct(h);
    }
}

thermo.correct();

Info<< "Min/max T:" << min(thermo.T()) << ' ' << max(thermo.T()) << endl;
How i can modify this file for my case??

Thankyou in advance
Vishsel
Vishsel is offline   Reply With Quote

Old   September 20, 2019, 05:26
Default
  #6
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
The error seems to come from your boundary condition. Have you a coupled boundary condition? If you have only a solid and no neighbor fluid this is maybe the problem
mAlletto is offline   Reply With Quote

Old   January 28, 2021, 02:03
Default
  #7
New Member
 
Join Date: Nov 2020
Posts: 2
Rep Power: 0
Bogha is on a distinguished road
$ chtmultiregionSimpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
/* Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt *\
| Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com |
\*---------------------------------------------------------------------------*/
Build : 5.x-963176928289
Exec : C:/PROGRA~1/BLUECF~1/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin/chtmultiregionSimpleFoam.exe
Date : Jan 28 2021
Time : 10:51:50
Host : "HP"
PID : 9260
I/O : uncollated
Case : C:/PROGRA~1/BLUECF~1/ofuser-of5/run/chtpipe
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create fluid mesh for region air for time = 0

Create solid mesh for region solid for time = 0

*** Reading fluid mesh thermophysical properties for region air

Adding to thermoFluid

Selecting thermodynamics package
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}

Adding to rhoFluid

Adding to UFluid

Adding to phiFluid

Adding to gFluid

Adding to hRefFluid

Adding to ghFluid

Adding to ghfFluid

Adding to turbulence

Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
Selecting patchDistMethod meshWave
RAS
{
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
alphaK1 0.85;
alphaK2 1;
alphaOmega1 0.5;
alphaOmega2 0.856;
gamma1 0.5555556;
gamma2 0.44;
beta1 0.075;
beta2 0.0828;
betaStar 0.09;
a1 0.31;
b1 1;
c1 10;
F3 false;
}

Selecting radiationModel none
Adding MRF

No MRF models present

Adding fvOptions

No finite volume options present

*** Reading solid mesh thermophysical properties for region solid

Adding to thermos

Selecting thermodynamics package
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}

--> FOAM Warning :
From function const Foam::HashTable<Foam::List<int>, Foam::word>& Foam:olyBoundaryMesh::groupPatchIDs() const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 467
Removing patchGroup 'wall' which clashes with patch 1 of the same name.
Adding to radiations

Selecting radiationModel opaqueSolid
Adding fvOptions

No finite volume options present

Time = 1


Solving for fluid region air
DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.01939955, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.04581175, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 0.00886154, No Iterations 1


--> FOAM FATAL ERROR:

request for polyMesh wall from objectRegistry chtpipe failed
available objects of type polyMesh are

2
(
air
solid
)


From function const Type& Foam:bjectRegistry::lookupObject(const Foam::word&) const [with Type = Foam:olyMesh]
in file X:/OpenFOAM-5.x/src/OpenFOAM/db/objectRegistry/objectRegistryTemplates.C at line 193.

FOAM aborting

Generating stack trace...


Backtrace:
ZN10StackTraceC1Ev [0x705c1465+0x25]
module: C:\PROGRA~1\BLUECF~1\ThirdParty-5.x\platforms\mingw_w64GccDPInt32\lib\libstack_tra ce.dll
ZN4Foam5error10printStackERNS_7OstreamE [0x9f1c88+0x218]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
ZN4Foam5error5abortEv [0x7a5b5d+0x12d]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
ZNK4Foam14objectRegistry12lookupObjectINS_8polyMes hEEERKT_RKNS_4wordE [0x633b3f68+0x218]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libmeshTo ols.dll
ZN4Foam12compressible56turbulentTemperatureCoupled BaffleMixedFvPatchScalarField12updateCoeffsEv [0x6b6484b2+0xa2]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libcompre ssibleTurbulenceModels.dll
ZN4Foam17mixedFvPatchFieldIdE8evaluateENS_8UPstrea m10commsTypesE [0x6b6980c2+0x22]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libcompre ssibleTurbulenceModels.dll
ZN4Foam29mixedEnergyFvPatchScalarField12updateCoef fsEv [0x6a30bd43+0xd3]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libfluidT hermophysicalModels.dll
(No symbol) [0x41afff]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtmultir egionSimpleFoam.exe
(No symbol) [0x44fdd6]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtmultir egionSimpleFoam.exe
(No symbol) [0x4326f6]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtmultir egionSimpleFoam.exe
(No symbol) [0x486762]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtmultir egionSimpleFoam.exe
(No symbol) [0x4013f7]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtmultir egionSimpleFoam.exe
(No symbol) [0x40152b]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtmultir egionSimpleFoam.exe
BaseThreadInitThunk [0x7ff9540313f2+0x22]
module: C:\Windows\system32\KERNEL32.DLL
RtlUserThreadStart [0x7ff9549d54f4+0x34]
module: C:\Windows\SYSTEM32\ntdll.dll

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Bogha is offline   Reply With Quote

Old   May 25, 2023, 07:24
Default
  #8
TGS
New Member
 
TGS
Join Date: May 2023
Location: United Kingdom
Posts: 27
Rep Power: 2
TGS is on a distinguished road
Hi,
I got the same problem. However, I don't know where I can find the dictionary file to change the neighbour region type from air to region0.

Please help me. I am a new person to OpenFoam.


Thanks,
TGS
Jialin likes this.
TGS is offline   Reply With Quote

Old   September 3, 2023, 14:35
Default
  #9
New Member
 
Jialin
Join Date: Jul 2023
Posts: 2
Rep Power: 0
Jialin is on a distinguished road
Hi TGS
I have same problem now and didnt find solustion.
did you solved jet?

Thanks,
Jialin
Jialin is offline   Reply With Quote

Old   September 6, 2023, 05:36
Default
  #10
TGS
New Member
 
TGS
Join Date: May 2023
Location: United Kingdom
Posts: 27
Rep Power: 2
TGS is on a distinguished road
Quote:
Originally Posted by Jialin View Post
Hi TGS
I have same problem now and didnt find solustion.
did you solved jet?

Thanks,
Jialin
Hi Jialin,

Yes I solved the problem. Once I did the topoSet, I applied the splitMeshRegions -cellZonesOnly -overwrite instead of splitMeshRegions -cellZones -overwrite.

Then it showing only the available cell Zones in my case. Not showing any other regions.
Jialin likes this.
TGS 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
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 17:43
[OpenFOAM] Saving ParaFoam views and case sail ParaView 9 November 25, 2011 15:46
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 04:54.