Carlo_P |
October 30, 2019 08:54 |
CHTMultyRegionFoam - BC problem?
Hey Guys,
I'm trying to perform and analys with CHTMultyRegionFoam.
A liquid is inside a mold and the mold is heater by some resistance.
I tried to set up, I run it, but some errors appers.
I attach the folder. Can you take a look and give me some suggestions?
I think that the problem is linked to some BL
Thanks a lot,
Carlo
Error, during the first iteration, after rho, Ux,Uy,Uz and h calcolation
Code:
--> FOAM FATAL ERROR:
Maximum number of iterations exceeded: 100
From function Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scal ar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type >::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<The rmo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::t hermo<Thermo, Type>::*)(Foam::scalar) const) const [with Thermo = Foam::hConstTh ermo<Foam::rhoConst<Foam::specie> >; Type = Foam::sensibleEnthalpy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hCo nstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy>]
in file /opt/CFDSupportFOAM4.0/beta/OpenFOAM-dev/src/thermophysicalModels/sp ecie/lnInclude/thermoI.H at line 73.
FOAM aborting
solid/T
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0/metal";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
internalField uniform 400;
boundaryField
{
Box
{
type zeroGradient;
}
"Res.*"
{
type fixedValue;
value uniform 480;
}
Fronte
{
type externalWallHeatFluxTemperature;
kappaMethod solidThermo;
//thicknessLayers ();
//kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 290;
}
Retro
{
type externalWallHeatFluxTemperature;
kappaMethod solidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 290;
}
Inlet1
{
type externalWallHeatFluxTemperature;
kappaMethod solidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 290;
}
Inlet2
{
type externalWallHeatFluxTemperature;
kappaMethod solidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 290;
}
Outlet1
{
type externalWallHeatFluxTemperature;
kappaMethod solidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 290;
}
Outlet2
{
type externalWallHeatFluxTemperature;
kappaMethod solidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 290;
}
domain0_to_Fluido
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
value uniform 300;
Tnbr T;
kappaMethod solidThermo;
kappaName none;
}
}
// ************************************************************************* //
solid/p
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0/heater";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 101325;
boundaryField
{
".*"
{
type calculated;
value $internalField;
}
}
fluid/T
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0/fluid";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
internalField uniform 0;
boundaryField
{
"Inlet."
{
type externalWallHeatFluxTemperature;
kappaMethod fluidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 400;
}
"Outlet.*"
{
type externalWallHeatFluxTemperature;
kappaMethod fluidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 400;
}
Fluido_to_domain0
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
value uniform 300;
Tnbr T;
kappaMethod fluidThermo;
kappaName none;
}
Fronte
{
type externalWallHeatFluxTemperature;
kappaMethod fluidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 400;
}
Retro
{
type externalWallHeatFluxTemperature;
kappaMethod fluidThermo;
thicknessLayers ();
kappaLayers ();
mode coefficient;
h uniform 8;
Ta 290;
value 400;
}
}
// ************************************************************************* //
fluid/U
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
|* OpenFOAM for Windows 18.06 (v1) *|
|* Built by CFD Support, www.cfdsupport.com (based on Symscape). *|
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "1060";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
"Inlet."
{
type flowRateInletVelocity;
massFlowRate constant 0.0003;
rhoInlet 1000;
}
"Outlet.*"
{
type zeroGradient;
}
Fluido_to_domain0
{
type fixedValue;
value uniform (0 0 0);
}
Fronte
{
type fixedValue;
value uniform (0 0 0);
}
Retro
{
type fixedValue;
value uniform (0 0 0);
}
}
fluid/p_rgh
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 101325;
boundaryField
{
"Inlet."
{
type calculated;
value 101325;
}
"Outlet.*"
{
type calculated;
value 101325;
}
Fluido_to_domain0
{
type calculated;
value 101325;
}
Fronte
{
type calculated;
value 101325;
}
Retro
{
type calculated;
value 101325;
}
}
fluid/p
Code:
*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0/fluid";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
internalField uniform 101325;
boundaryField
{
"Inlet."
{
type zeroGradient;
}
"Outlet.*"
{
type totalPressure;
p0 uniform 101325;
U U;
phi phi;
rho rho;
//psi none;
//gamma 1;
value uniform 101325;
}
Fluido_to_domain0
{
type calculated;
value uniform 101325;
}
Fronte
{
type zeroGradient;
}
Retro
{
type zeroGradient;
}
}
// ************************************************************************* //
|