CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   chtMultiRegionSimpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/123373-chtmultiregionsimplefoam.html)

samiam1000 September 11, 2013 07:22

chtMultiRegionSimpleFoam
 
Dear All,

I am trying to run chtMultiRegionSimpleFoam.

I have prepared a case with 1 fluid region and 6 solid regions.

I have set my case and when I lauch it, I get this error:

Code:

    Adding to radiations

Radiation model not active: radiationProperties not found
Selecting radiationModel none
    Adding fvOptions

No finite volume options present

*** Reading solid mesh thermophysical properties for region domain5

    Adding to thermos

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

    Adding to radiations

Radiation model not active: radiationProperties not found
Selecting radiationModel none
    Adding fvOptions

No finite volume options present

Time = 1


Solving for fluid region part_2-solid
DILUPBiCG:  Solving for Ux, Initial residual = 1, Final residual = 0.00888973, No Iterations 1
DILUPBiCG:  Solving for Uy, Initial residual = 1, Final residual = 0.00350072, No Iterations 1
DILUPBiCG:  Solving for Uz, Initial residual = 1, Final residual = 0.00662661, No Iterations 1
DILUPBiCG:  Solving for h, Initial residual = 1, Final residual = 0.000600295, No Iterations 1
Min/max T:270 300
GAMG:  Solving for p_rgh, Initial residual = 0.94945, Final residual = 0.00676794, No Iterations 7
time step continuity errors : sum local = 0.316082, global = -0.025282, cumulative = -0.025282
Min/max rho:1.15862 1.28736

Solving for solid region pcm


--> FOAM FATAL ERROR:
Attempt to cast type zeroGradient to type compressible::turbulentTemperatureCoupledBaffleMixed

    From function refCast<To>(From&)
    in file /home/zampini/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/typeInfo.H at line 114.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  Foam::compressible::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField const& Foam::refCast<Foam::compressible::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField const, Foam::fvPatchField<double> const>(Foam::fvPatchField<double> const&) in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so"
#3  Foam::compressible::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs() in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so"
#4  Foam::mixedFvPatchField<double>::evaluate(Foam::UPstream::commsTypes) in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#5  Foam::mixedEnergyFvPatchScalarField::updateCoeffs() in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#6  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::updateCoeffs() in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#7  Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#8 
 in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#9 
 in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#10  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11 
 in "/home/zampini/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
Annullato
zampini@pc-zampini:~/Documenti/personali/Epta/SCC/steady$


I can not understand what it means. Could you help, please?

Thanks a lot,
Samuele

wyldckat September 11, 2013 17:22

Hi Samuele,

Can you attach the boundary conditions for the "pcm" region, as well as any regions that are in touch with it?

Although, if I have to guess, I think that this sentence:
Code:

Attempt to cast type zeroGradient to type compressible::turbulentTemperatureCoupledBaffleMixed
means that for a certain patch, on one region you have "zeroGradient" and on the other region you have "turbulentTemperatureCoupledBaffleMixed". But the two seem to be incompatible.

Best regards,
Bruno

samiam1000 September 12, 2013 03:27

1 Attachment(s)
Dear Bruno,

thanks for answering, first. Also, about your suggestions, I completely agree. The point is that I chacked the boundary conditions twice and I can't find any error. I am attaching to this email all the changeLogDictionary I use. Could you kindly have a look and let me know what's wrong with it?

Thanks a lot,
Samuele

Ahmed Khattab September 12, 2013 04:53

Dear Samuele,

it seems that you put this B.C for a patch in a region (compressible::turbulentTemperatureCoupledBaffleMi xed). then you put zeroGradient to the same patch in the other region which is not applicable. the B.C must be the same for same patch in different regions.

hope it helps.
BR,

samiam1000 September 12, 2013 05:08

I will check it again, then.

Thanks a lot,
Samuele

samiam1000 September 12, 2013 06:07

I have found a first error: I haven't set the right BC in the fluid region.

I ran my case and I get a different error: could you help in solving this, too?

Thanks a lot,
Samuele

The error message is:
Code:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.1-57f3c3617a2d
Exec : chtMultiRegionSimpleFoam
Date : Sep 12 2013
Time : 11:47:31
Host : "lab-laptop"
PID : 7539
Case : /home/lab/Documenti/Ethics/FRISBEE/CFD/SCC/steady
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create fluid mesh for region part_2-solid for time = 0
Create solid mesh for region pcm for time = 0
Create solid mesh for region packs_1 for time = 0
Create solid mesh for region packs_2 for time = 0
Create solid mesh for region part_2-solid.1 for time = 0
Create solid mesh for region domain2 for time = 0
Create solid mesh for region domain5 for time = 0
*** Reading fluid mesh thermophysical properties for region part_2-solid
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 turbulence
Selecting turbulence model type laminar
Adding to ghFluid
Adding to ghfFluid
Radiation model not active: radiationProperties not found
Selecting radiationModel none
Adding fvOptions
No finite volume options present
*** Reading solid mesh thermophysical properties for region pcm
Adding to thermos
Selecting thermodynamics package
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
Adding to radiations
Radiation model not active: radiationProperties not found
Selecting radiationModel none
Adding fvOptions
No finite volume options present
*** Reading solid mesh thermophysical properties for region packs_1
Adding to thermos
Selecting thermodynamics package
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
Adding to radiations
Radiation model not active: radiationProperties not found
Selecting radiationModel none
Adding fvOptions
No finite volume options present
*** Reading solid mesh thermophysical properties for region packs_2
Adding to thermos
Selecting thermodynamics package
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
Adding to radiations
Radiation model not active: radiationProperties not found
Selecting radiationModel none
Adding fvOptions
No finite volume options present
*** Reading solid mesh thermophysical properties for region part_2-solid.1
Adding to thermos
Selecting thermodynamics package
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
Adding to radiations
Radiation model not active: radiationProperties not found
Selecting radiationModel none
Adding fvOptions
No finite volume options present
*** Reading solid mesh thermophysical properties for region domain2
Adding to thermos
Selecting thermodynamics package
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
Adding to radiations
Radiation model not active: radiationProperties not found
Selecting radiationModel none
Adding fvOptions
No finite volume options present
*** Reading solid mesh thermophysical properties for region domain5
Adding to thermos
Selecting thermodynamics package
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
Adding to radiations
Radiation model not active: radiationProperties not found
Selecting radiationModel none
Adding fvOptions
No finite volume options present
Time = 1
 
Solving for fluid region part_2-solid
DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.00888973, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.00350072, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 0.00662661, No Iterations 1
DILUPBiCG: Solving for h, Initial residual = 1, Final residual = 0.00187789, No Iterations 1
Min/max T:270 300
GAMG: Solving for p_rgh, Initial residual = 0.949213, Final residual = 0.00675391, No Iterations 7
time step continuity errors : sum local = 0.316054, global = -0.02528, cumulative = -0.02528
Min/max rho:1.15862 1.28736
Solving for solid region pcm
DICPCG: Solving for h, Initial residual = 1, Final residual = 0.0743357, No Iterations 1
Min/max T:min(T) [0 0 0 1 0 0 0] 270 max(T) [0 0 0 1 0 0 0] 300
Solving for solid region packs_1
DICPCG: Solving for h, Initial residual = 1, Final residual = 0.0768139, No Iterations 1
Min/max T:min(T) [0 0 0 1 0 0 0] 288.897 max(T) [0 0 0 1 0 0 0] 300
Solving for solid region packs_2
#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::polyMeshTetDecomposition::findFaceBasePts(Foam::polyMesh const&, double, bool) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 Foam::polyMesh::tetBasePtIs() const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5 Foam::mappedPatchBase::facePoints(Foam::polyPatch const&) const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#6 Foam::mappedPatchBase::calcMapping() const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#7 void Foam::mappedPatchBase::distribute<double>(Foam::List<double>&) const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#8 Foam::compressible::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs() in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so"
#9 Foam::mixedFvPatchField<double>::evaluate(Foam::UPstream::commsTypes) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#10 Foam::mixedEnergyFvPatchScalarField::updateCoeffs() in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#11 Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#12
in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#13
in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#14 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#15
in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
Segmentation fault (core dumped)
lab@lab-laptop:~/Documenti/Ethics/FRISBEE/CFD/SCC/steady$


Ahmed Khattab September 12, 2013 06:37

Dear Samuele,

this error always appears when there is a problem with three factors: cell size, time step, velocity value. you must compromise the three factors to get smooth run.

hint: adjust dimensions and cell size such that patches boundaries lays on cells boundaries not in middle of it.

hope it helps,

Best Regards,

Ahmed

samiam1000 September 12, 2013 06:49

Do you mean that it could be necessary to remesh my geometry?

Ahmed Khattab September 12, 2013 06:59

no i don't mean so, i only drag your attention to revise it, but you can change your velocity value, or time step. you can go back to the user manual to know how to set time step.

samiam1000 September 12, 2013 08:19

I think that being a steady simulation, the time-step does not influence the solution: is this right?

wyldckat September 14, 2013 10:27

Greetings to all!

@Samuele:
Quote:

Originally Posted by samiam1000 (Post 451343)
I think that being a steady simulation, the time-step does not influence the solution: is this right?

AFAIK, that is correct. The time step doesn't matter in steady-state simulations... at least not usually.
The unusual example might be LTSInterFoam: http://www.openfoam.org/version2.0.0/steady-vof.php

Quote:

Originally Posted by samiam1000 (Post 451306)
I ran my case and I get a different error: could you help in solving this, too?

Code:

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::polyMeshTetDecomposition::findFaceBasePts(Foam::polyMesh const&, double, bool) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 Foam::polyMesh::tetBasePtIs() const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"


It gave a SIGSEGV signal (#1) when trying to perform "polyMeshTetDecomposition :: findFaceBasePts" (#3). I'm guessing that this means that there is something very wrong with your mesh. Do a complete check mesh by running:
Code:

checkMesh -allGeometry -allTopology
Best regards,
Bruno

samiam1000 September 15, 2013 12:39

Dear Bruno,

thanks for answering and pardon for the late reply.

This is the output of the command you suggested:

Code:

zampini@pc-zampini:~/Documenti/personali/Epta/SCC/steady$ checkMesh -allGeometry -allTopology
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.0
Exec  : checkMesh -allGeometry -allTopology
Date  : Sep 15 2013
Time  : 18:37:51
Host  : "pc-zampini"
PID    : 1944
Case  : /home/zampini/Documenti/personali/Epta/SCC/steady
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Create polyMesh for time = 0

Enabling all (cell, face, edge, point) topology checks.

Enabling all geometry checks.

Time = 0

Mesh stats
    points:          621150
    faces:            1816951
    internal faces:  1761449
    cells:            596440
    faces per cell:  5.9996
    boundary patches: 13
    point zones:      0
    face zones:      14
    cell zones:      5

Overall number of cells of each type:
    hexahedra:    596200
    prisms:        240
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:    0

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Topological cell zip-up check OK.
    Number of identical duplicate faces (baffle faces): 3200
    Face-face connectivity OK.
  <<Writing 6400 faces with non-standard edge connectivity to set edgeFaces
  <<Writing 4 cells with two non-boundary faces to set twoInternalFacesCells
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch              Faces    Points  Surface topology                  Bounding box
    deflettori          6400    3403    multiply connected (shared edge)  (-0.1 -0.05 0.45) (1.3 0.3 0.5)
    foam-pcm            4200    4402    ok (non-closed singly connected)  (-0.05 0 -0.05) (1.25 0.3 -0.05)
    foam-part_2-solid  14391    14810    ok (non-closed singly connected)  (-0.1 -0.05 -0.05) (1.3 0.3 0.75)
    foam-part_2-solid.1 8400    8662    ok (non-closed singly connected)  (-0.05 -0.05 -0.05) (1.25 0 0.45)
    glass              5600    5781    ok (non-closed singly connected)  (-0.1 -0.05 0.75) (1.3 0.3 0.75)
    inlet_1            400      451      ok (non-closed singly connected)  (0.55 -0.05 -0.05) (0.6 0.3 -0.05)
    inlet_2            400      451      ok (non-closed singly connected)  (0.6 -0.05 -0.05) (0.65 0.3 -0.05)
    intake_1            400      451      ok (non-closed singly connected)  (-0.1 -0.05 -0.05) (-0.05 0.3 -0.05)
    intake_2            400      451      ok (non-closed singly connected)  (1.25 -0.05 -0.05) (1.3 0.3 -0.05)
    symmetry-packs_1    2250    2346    ok (non-closed singly connected)  (0 0.3 0) (0.5 0.3 0.45)
    symmetry-pcm        2500    2832    ok (non-closed singly connected)  (-0.05 0.3 -0.05) (1.25 0.3 0.45)
    symmetry-part_2-solid7911    8250    ok (non-closed singly connected)  (-0.1 0.3 -0.05) (1.3 0.3 0.75)
    symmetry-packs_2    2250    2346    ok (non-closed singly connected)  (0.7 0.3 0) (1.2 0.3 0.45)
  <<Writing 3391 conflicting points to set nonManifoldPoints

Checking geometry...
    Overall domain bounding box (-0.1 -0.05 -0.05) (1.3 0.3 0.75)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (3.24011e-16 3.56288e-17 1.47307e-15) OK.
    Max cell openness = 3.10576e-16 OK.
    Max aspect ratio = 13.8392 OK.
    Minimum face area = 7.67269e-06. Maximum face area = 0.000250165.  Face area magnitudes OK.
    Min volume = 3.06526e-08. Max volume = 2.41892e-06.  Total volume = 0.392.  Cell volumes OK.
    Mesh non-orthogonality Max: 54.2303 average: 11.4654
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 1.05523 OK.
    Coupled point location match (average 0) OK.
    Face tets OK.
    Min/max edge length = 0.00290397 0.0199751 OK.
    All angles in faces OK.
    Face flatness (1 = flat, 0 = butterfly) : average = 1  min = 1
    All face flatness OK.
    Cell determinant (wellposedness) : minimum: 0 average: 5.679
 ***Cells with small determinant found, number of cells: 80
  <<Writing 80 under-determined cells to set underdeterminedCells
    Concave cell check OK.

Failed 1 mesh checks.

End

Could you help?

wyldckat September 15, 2013 14:58

Hi Samuele,

Quote:

Originally Posted by samiam1000 (Post 451828)
Code:

    Cell determinant (wellposedness) : minimum: 0 average: 5.679
 ***Cells with small determinant found, number of cells: 80
  <<Writing 80 under-determined cells to set underdeterminedCells
    Concave cell check OK.


:eek: Oh, this is bad, very bad! Cell determinant values of "0" basically means that there is either a contorted cell that crosses over itself or that it's a cell without volume. This is probably what's triggering the crash!

paraFoam provides you with the ability to also see the sets. Turn on that option and choose to see "underdeterminedCells" that should appear in the same list as the patches. Then try to see where exactly where the problem cells are and try to re-do your mesh.

Another possibility is to follow the example shown here: http://openfoamwiki.net/index.php/SetSet#Usage_example - more specifically, to only remove the cells associated to "underdeterminedCells". But keep in mind that this kind of cell removal strategy has certain limitations, such as possibly and wrongly removing some important cells.

Best regards,
Bruno

samiam1000 September 16, 2013 03:04

1 Attachment(s)
Dear Bruno,

I am attaching a picture of the whole volume where it is evident where the underdeterminedCells are.

I can't understand what's wrong with them. Do you have any idea?

First of all, I will try your suggestions.

Thanks a lot,

Samuele

samiam1000 September 18, 2013 06:41

Dear Bruno, Dear All,

after having re-meshed my geometry, I get a very strange result.

First of all, all the mesh checks are ok! Hance I thought that my simulation would have started immediately, but..
..but I got this error:
Code:

lab@lab-laptop:~/Documenti/Ethics/FRISBEE/CFD/SCC/steady$ chtMultiRegionSimpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.1-57f3c3617a2d
Exec : chtMultiRegionSimpleFoam
Date : Sep 18 2013
Time : 12:36:14
Host : "lab-laptop"
PID : 4908
Case : /home/lab/Documenti/Ethics/FRISBEE/CFD/SCC/steady
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create fluid mesh for region part_2-solid for time = 0
Create solid mesh for region pcm for time = 0
Create solid mesh for region packs_1 for time = 0
Create solid mesh for region packs_2 for time = 0
Create solid mesh for region part_2-solid.1 for time = 0
Create solid mesh for region domain2 for time = 0
Create solid mesh for region domain5 for time = 0
*** Reading fluid mesh thermophysical properties for region part_2-solid
Adding to thermoFluid
Selecting thermodynamics package
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}
#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::tmp<Foam::Field<double> > Foam::fvPatch::patchInternalField<double>(Foam::UList<double> const&) const in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#4 Foam::fvPatchField<double>::patchInternalField() const in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#5 Foam::basicSymmetryFvPatchField<double>::evaluate(Foam::UPstream::commsTypes) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#6 Foam::symmetryFvPatchField<double>::symmetryFvPatchField(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#7 Foam::fvPatchField<double>::adddictionaryConstructorToTable<Foam::symmetryFvPatchField<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#8 Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#9 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::readField(Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#10 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#11 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields() in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#12 at basicThermo.C:0
#13 Foam::basicThermo::lookupOrConstruct(Foam::fvMesh const&, char const*) const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#14 Foam::basicThermo::basicThermo(Foam::fvMesh const&, Foam::word const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#15 Foam::fluidThermo::fluidThermo(Foam::fvMesh const&, Foam::word const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#16 Foam::rhoThermo::rhoThermo(Foam::fvMesh const&, Foam::word const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#17 Foam::heThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::heThermo(Foam::fvMesh const&, Foam::word const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#18 Foam::rhoThermo::addfvMeshConstructorToTable<Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > > >::New(Foam::fvMesh const&, Foam::word const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#19 Foam::autoPtr<Foam::rhoThermo> Foam::basicThermo::New<Foam::rhoThermo>(Foam::fvMesh const&, Foam::word const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#20 Foam::rhoThermo::New(Foam::fvMesh const&, Foam::word const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#21
in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#22 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#23
in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
Segmentation fault (core dumped)
lab@lab-laptop:~/Documenti/Ethics/FRISBEE/CFD/SCC/steady$

And trying to open the geometry with paraview, it crashes when I want to view the patches and not the internal mesh. I get a segmentation fault.
And this happens for each region.

Do you have any idea? Could you help?

wyldckat September 21, 2013 15:22

Hi Samuele,

There seems to be a problem with a patch that is defined to be a symmetry plane:
Quote:

Code:

#5 Foam::basicSymmetryFvPatchField<double>::evaluate(Foam::UPstream::commsTypes) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#6 Foam::symmetryFvPatchField<double>::symmetryFvPatchField(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"


But without access to the files, I cannot see the actual problem for myself.

Best regards,
Bruno

samiam1000 September 22, 2013 16:43

Here is the case: https://www.dropbox.com/sh/tgdwuqkfodgdffk/zFNdkvUgjH

Could you have a look?

Thanks a lot,
Samuele

Tobi September 23, 2013 06:48

Code:

Solving for solid region packs_2
#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::polyMeshTetDecomposition::findFaceBasePts(Foam::polyMesh const&, double, bool) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 Foam::polyMesh::tetBasePtIs() const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5 Foam::mappedPatchBase::facePoints(Foam::polyPatch const&) const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#6 Foam::mappedPatchBase::calcMapping() const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#7 void Foam::mappedPatchBase::distribute<double>(Foam::List<double>&) const in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#8 Foam::compressible::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs() in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so"
#9 Foam::mixedFvPatchField<double>::evaluate(Foam::UPstream::commsTypes) in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#10 Foam::mixedEnergyFvPatchScalarField::updateCoeffs() in "/opt/openfoam221/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#11 Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#12
in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#13
in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#14 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#15
in "/opt/openfoam221/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
Segmentation fault (core dumped)

This is not a problem of
Code:

this error always appears when there is a problem with three factors: cell size, time step, velocity value. you must compromise the three factors to get smooth run.
... if I am not wrong I know this error and I searched long time to find the trivial Problem.
If I am right you have a Problem in the Boundary Conditions of T in packs_2 or in your fluid Region. Maybe your boundary file is wrong (patch type).

Maybe you have no value set.?

Your mesh seems okay.

Regards
Tobi

samiam1000 September 23, 2013 08:02

Dear Tobi,

thanks for answering. Actually, I have solved this very problem (it was due to a bad definition of the boudary conditions) and the simulation's running.
However, the temperature seems to be meaningless: I do have a max temperature of about 740000 K. Too much, I say.

I am going to check this problem, too. Any idea to begin to investigate the issue?

Thanks a lot,
Samuele.

Tobi September 24, 2013 06:20

Hi,

write out the first 10 or 20 integrations and have a look at your Domain.
You will be able to see the regions where you get the high temperature values. It could be possible that this Problem occure due to a mesh Problem. otherwise you see if your BC are incorrect or your Settings are wrong.

Good luck

zfaraday February 13, 2015 14:29

similar problem, but maybe related to some BC
 
2 Attachment(s)
Greetings all,

I know this is a very old thread but I'm facing a problem that looks very similar to the one posted here. I'm dealing with a multi region case with the chtMultiRegionFoam solver. My case is made up of some solid regions and a fluid region. It starts solving first the fluid region with no problem but when it starts to solve the first solid region the following error comes up:
Code:

Solving for solid region fasana
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  in "/lib64/libc.so.6"
#3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#4  Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#5  parserPatch::PatchValueExpressionParser::parse() at ??:?
#6  Foam::PatchValueExpressionDriver::parseInternal(int) at ??:?
#7  Foam::CommonValueExpressionDriver::parse(Foam::exprString const&, Foam::word const&) at ??:?
#8  Foam::tmp<Foam::Field<double> > Foam::CommonValueExpressionDriver::evaluate<double>(Foam::exprString const&, bool) at ??:?
#9  Foam::groovyBCFvPatchField<double>::updateCoeffs() at ??:?
#10  Foam::mixedFvPatchField<double>::evaluate(Foam::UPstream::commsTypes) at ??:?
#11  Foam::mixedEnergyFvPatchScalarField::updateCoeffs() at ??:?
#12  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::updateCoeffs() at ??:?
#13  Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) at ??:?
#14 
 at ??:?
#15 
 at ??:?
#16  __libc_start_main in "/lib64/libc.so.6"
#17 
 at /home/abuild/rpmbuild/BUILD/glibc-2.17/csu/../sysdeps/x86_64/start.S:126

Althoug it's not exactly the same message that appeared to the thread's creator (mine seems to be related to some BC, but I don't know exactly which one nor what the problem is...) I followed the steps that Bruno Santos suggested. I check the mesh topology and I found that
Code:

    Cell determinant (wellposedness) : minimum: 0 average: 3.2312708
 ***Cells with small determinant (< 0.001) found, number of cells: 960
  <<Writing 960 under-determined cells to set underdeterminedCells

Seeing this error I understood that I had exactly the same problem than the creator of the thread, although the message was not exctly the same... Well, first of all I would really like to know what exactly means this error and what an under determined cell is, because the under determined cells in my case belong to some thin regions that are made up of only one column of cells. I actually solved this error by dividing these regions into more columns of cells in the blockMeshDict file.

After I solved the problem with the under determined cells I ran the case again but the same error was shown, so I got stuck because I don't know what it really means and I don't know where to look up.

I attach the changeDictionaryDict file and the T file belonging to the region that crashes so that you can check if there is something wrong in them. In case you need more files or even the entire case, just ask me for it! ;)

Many thanks in advance.

Regards,

Alex

wyldckat February 14, 2015 11:49

Greetings Alex,

In a case like this, you should apply the good old strategy of "isolate and conquer".

Anyway, from what I can see in the "T" file you provided, there are two major threats:
  1. You're using groovyBC. Not that it's dangerous by itself, the problem is that apparently you're not experienced enough with it. Therefore, the first step would be for you to first put aside using groovyBC for now, until you can figure out what is the reason for the problem.
  2. You're trying to use variables that are defined only at the end of the file "T". I'm not even sure what to say here... mmm, I guess that this is a good analogy: I'll tell you why this is a problem, after you've spent some time reading a least one good C++ book ;)
Best regards,
Bruno

zfaraday February 14, 2015 14:48

Dear Bruno,

Thanks for your quick answer!

Quote:

Originally Posted by wyldckat (Post 531859)
Greetings Alex,

In a case like this, you should apply the good old strategy of "isolate and conquer".

The wiser advise you could ever give in a case like mine. However, as I am trying to be as wise as you, I already isolated but I'm still waiting for my conquest to come... :(

Quote:

Originally Posted by wyldckat (Post 531859)
Anyway, from what I can see in the "T" file you provided, there are two major threats:
  1. You're using groovyBC. Not that it's dangerous by itself, the problem is that apparently you're not experienced enough with it. Therefore, the first step would be for you to first put aside using groovyBC for now, until you can figure out what is the reason for the problem.

  1. As I mentioned in other posts and you noticed somehow, I'm not an experienced swak user. Nevertheless, finally yesterday I could manage to solve the problem with groovyBC. The problem was that the boundary of the solid region needed a variable coming from a function object I forgot to define in controlDict. I defined it for the fluid region but forgot to do so for the solid region. Thus, I managed to solve my problem! :)

    Quote:

    Originally Posted by wyldckat (Post 531859)
  2. You're trying to use variables that are defined only at the end of the file "T". I'm not even sure what to say here... mmm, I guess that this is a good analogy: I'll tell you why this is a problem, after you've spent some time reading a least one good C++ book ;)

That sentence reminds me of something... Maybe some advice I gave to a novice recently... Are you attacking me with my own weapons? :eek: Well, you are right, my C++ skills are more than weak, but I found no time to learn something about it on my own so far. However, I know something about C language and I know that declaration of variables goes at the top of the file, not at the bottom. I guess that something like that happens in C++... By the way, I didn't put the variable definition at the bottom, the fact that they are in there is because of what we talked about a couple of days ago.

Well, now I could finally make it work I still have a problem. The problem is that the simulation starts running but after some time steps it crashes. Here you can see the last time steps for the fluid region (the one that make it crash):
Code:

Time = 158


Solving for fluid region cambra_aire
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCG:  Solving for Ux, Initial residual = 0.43303564, Final residual = 3.1317423e-08, No Iterations 7
DILUPBiCG:  Solving for Uy, Initial residual = 0.30021911, Final residual = 6.5293486e-09, No Iterations 8
DILUPBiCG:  Solving for Uz, Initial residual = 0.06714822, Final residual = 1.6341749e-08, No Iterations 7
DILUPBiCG:  Solving for h, Initial residual = 0.060831265, Final residual = 1.0189158e-08, No Iterations 6
Min/max T:16.83129 315.55516
GAMG:  Solving for p_rgh, Initial residual = 0.17209656, Final residual = 0.0015065066, No Iterations 2
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors (cambra_aire): sum local = 0.018986281, global = -0.0041410354, cumulative = -1.0939806
GAMG:  Solving for p_rgh, Initial residual = 0.023029345, Final residual = 9.9287594e-08, No Iterations 10
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors (cambra_aire): sum local = 1.3786288e-06, global = -3.2030593e-07, cumulative = -1.0939809
...
Time = 159


Solving for fluid region cambra_aire
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCG:  Solving for Ux, Initial residual = 0.59164209, Final residual = 2.3456257e-08, No Iterations 8
DILUPBiCG:  Solving for Uy, Initial residual = 0.56513797, Final residual = 5.357496e-08, No Iterations 8
DILUPBiCG:  Solving for Uz, Initial residual = 0.29594071, Final residual = 1.6331144e-08, No Iterations 8
DILUPBiCG:  Solving for h, Initial residual = 0.35403101, Final residual = 1.7882418e-08, No Iterations 7
Min/max T:-24.990244 315.57784
GAMG:  Solving for p_rgh, Initial residual = 0.50051967, Final residual = 0.0038889656, No Iterations 4
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors (cambra_aire): sum local = 0.08336456, global = -0.0075688716, cumulative = -1.1015498
GAMG:  Solving for p_rgh, Initial residual = 0.033368512, Final residual = 9.248029e-08, No Iterations 20
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors (cambra_aire): sum local = 2.9077841e-06, global = 7.1199841e-08, cumulative = -1.1015497
...
Time = 160


Solving for fluid region cambra_aire
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCG:  Solving for Ux, Initial residual = 0.83563518, Final residual = 1.1467818e-08, No Iterations 11
DILUPBiCG:  Solving for Uy, Initial residual = 0.7633537, Final residual = 2.8147703e-08, No Iterations 12
DILUPBiCG:  Solving for Uz, Initial residual = 0.73226472, Final residual = 2.7058083e-08, No Iterations 11
DILUPBiCG:  Solving for h, Initial residual = 0.96491629, Final residual = 8.0298622e-09, No Iterations 12


--> FOAM FATAL ERROR:
Maximum number of iterations exceeded

    From function thermo<Thermo, Type>::T(scalar f, scalar T0, scalar (thermo<Thermo, Type>::*F)(const scalar) const, scalar (thermo<Thermo, Type>::*dFdT)(const scalar) const, scalar (thermo<Thermo, Type>::*limit)(const scalar) const) const
    in file /home/cfd/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 76.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy>::T(double, double, double, double (Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy>::*)(double, double) const, double (Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy>::*)(double, double) const, double (Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy>::*)(double) const) const at ??:?
#3  Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::calculate() at ??:?
#4  Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::correct() at ??:?
#5 
 at ??:?
#6  __libc_start_main in "/lib64/libc.so.6"
#7 
 at /home/abuild/rpmbuild/BUILD/glibc-2.17/csu/../sysdeps/x86_64/start.S:126

The problem comes from the inlet patch where the T falls bellow 0 and its value is going down for the last steps. This problem is only coming from one or maybe two cells whose faces belong to the patch, its velocity is raising very fast and its temperature falls. I attach the velocity, temperature and pressure definition at both patches (inlet&outlet)
  • T:
    Code:

        up //outlet
        {
            type            inletOutlet;
            value          uniform 311.15;
            inletValue      uniform 311.15;
        }
        down //inlet
        {
            type            fixedValue;
            value          uniform 311.15;
        }

  • P_rgh:
    Code:

        up
        {
            type            fixedValue;
            value          uniform 100000;
        }
        down
        {
            type            fixedValue;
            value          uniform 100000;
        }

  • U:
    Code:

        up
        {
            type            pressureInletOutletVelocity;
            value          uniform ( 0 0 0.001 );
            phi            phi;
            rho            rho;
            tangentialVelocity uniform ( 0 0 0 );
        }
        down
        {
            type            pressureInletOutletVelocity;
            value          uniform ( 0 0 0.001 );
            phi            phi;
            rho            rho;
            tangentialVelocity uniform ( 0 0 0 );

    }

For more info, the case is about an air chamber that is heated by the solar radiation and the air inside the chamber flows because of the effect of the convection. If you need more info feel free to ask! ;) If I had more time I would have taken some screenshots so that you could see which cells lead to this crash. I will upload them as soon as I can!

Regards,

Alex

wyldckat February 14, 2015 15:00

Hi Alex,

:eek: temperatures below 0 Kelvin...
It's very much possible that you're triggering an issue related to simulating heat transfer with a steady-state solver. This was addressed sometime ago in another thread... ah, here you go, start reading from here: http://www.cfd-online.com/Forums/ope...tml#post528307 post #60.

And yes, the idea I was trying to give you was exactly about having the variable initializations at the top. And C++ is very similar to C, only just very much more organized... if coded correctly ;)

And I knew that something wouldn't exactly as intended with changeDictionary :( I just couldn't remember what it was exactly.

Either way, the thread I mentioned hopefully will get you in the right direction.

Good luck! Best regards,
Bruno

zfaraday February 16, 2015 10:20

4 Attachment(s)
Hi Bruno,

Thanks for the link but it's not exactly the same problem since my case is a transient one, not steady-state. Now I've had some time I took some screenshots so that you can have an idea about my problem. Here you can see the geometry I used.

http://www.cfd-online.com/Forums/att...1&d=1424098617

As you can see the air region is in the front, and the solid regions are just right behind it (the outline can be seen so that you can have an idea of my geometry). Attached you can find the temperature distribution for the last time step before it crashed. Also the U distribution is attached. As it is shown, the problem comes from the cells near the inlet patch, an extremely high velocity going out of the domain leads to an unphysical temperature distribution in the neighbouring cells, at least this is what it seems to my unexperinced eyes in the field of compressible flow in an opened domain...

I have tried with different discretizations, with a coarser mesh but it allways crashes, sometimes sooner, sometimes later, but it crashes all the time... I don't know if it is a problem of the mesh or a bad definition of the BC's (specification can be seen some posts above!). I need a little help to find the correct way to make it run.

Many thanks in advance.

Regards,

Alex

derekm February 16, 2015 18:41

Quote:

Originally Posted by zfaraday (Post 532039)
Hi Bruno,

Thanks for the link but it's not exactly the same problem since my case is a transient one, not steady-state. ...

Alex

thread title is chtmultiregionsimplefoamwhich suggests steadystate.
moving on ...
have you checked that the regions are really conformal? (assuming this not AMI) and you havent gained an extra region?

I remember this causing similar issues.

zfaraday February 22, 2015 14:08

Hello,

Finally I managed to "solve" it. The problem was, I guessed, the Courant number. The fact is that I was solving the case using a fixed time step of, if I'm not wrong, 1s. It was not causing any trouble during the first time steps but after a few time steps the Courant number started raising until the end of the simulation leading this to totally unphysical values. When I found it out I started the run with a deltaT of 0.2s during the first second to get it started and afterwards I switched the parameter adjustTimeStep to yes and maxCo to 0.9 in order to get better values for my simulation. Obviously, I got an improved temperature distribution but they are not totally correct yet. Here you can see the result I got, temperature minimums are not as unphysical as they were, but they are not physical at all yet.

Thanks for your help and time.

Regard,

Alex

mehtab May 12, 2015 13:38

Hi foamers,

Is there any kind soul to help me solve this problem? I am getting this error while running. I know the problem is coming from boundary condition but I do not know what should I do further. Please help.

Code:

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  in "/lib64/libc.so.6"
#3  Foam::divide(Foam::Field<double>&, double const&, Foam::UList<double> const&) at ??:?
#4  Foam::operator/(double const&, Foam::UList<double> const&) at ??:?
#5  Foam::customEnthalpyFluxTemperatureFvPatchScalarField::updateCoeffs() at ??:?
#6  Foam::mixedFvPatchField<double>::evaluate(Foam::UPstream::commsTypes) at ??:?
#7  Foam::mixedEnergyFvPatchScalarField::updateCoeffs() at ??:?
#8  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::updateCoeffs() at ??:?
#9  Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) at ??:?
#10  Foam::tmp<Foam::fvMatrix<double> > Foam::fvm::Sp<double>(Foam::DimensionedField<double, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#11  Foam::tmp<Foam::fvMatrix<double> > Foam::fvm::Sp<double>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#12  Foam::radiation::radiationModel::Sh(Foam::fluidThermo&) const at ??:?
#13 
 at ??:?
#14  __libc_start_main in "/lib64/libc.so.6"
#15 
 at /home/abuild/rpmbuild/BUILD/glibc-2.19/csu/../sysdeps/x86_64/start.S:125
Floating point exception



Thanks in advance..................

wyldckat May 16, 2015 11:33

Quote:

Originally Posted by firefoam (Post 546044)
Is there any kind soul to help me solve this problem?

Quick answer - Follow the instructions given here: http://www.cfd-online.com/Forums/ope...-get-help.html

laurent98 January 20, 2016 01:00

dear all,
i'm still facing a crach of the chtMultiRegionSimpleFoam after 5 time steps here the end of the log file:
any suggestion will be very welcome, thank by advance ..

Code:

Time = 4


Solving for fluid region air
DILUPBiCG:  Solving for Ux, Initial residual = 0.1677119, Final residual = 0.007570572, No Iterations 1
DILUPBiCG:  Solving for Uy, Initial residual = 0.09862205, Final residual = 0.005734411, No Iterations 1
DILUPBiCG:  Solving for Uz, Initial residual = 0.1516592, Final residual = 0.01006138, No Iterations 1
DILUPBiCG:  Solving for h, Initial residual = 0.3224805, Final residual = 0.01444143, No Iterations 2
Min/max T:101.3907 401.5919
GAMG:  Solving for p_rgh, Initial residual = 0.4801783, Final residual = 0.004185736, No Iterations 4
time step continuity errors : sum local = 0.2820421, global = 0.01068328, cumulative = -0.02434987
Min/max rho:0.2 2
DILUPBiCG:  Solving for epsilon, Initial residual = 0.2375966, Final residual = 0.002033653, No Iterations 1
DILUPBiCG:  Solving for k, Initial residual = 0.1964795, Final residual = 0.009602515, No Iterations 2
bounding k, min: -33.28641 max: 1857.522 average: 22.48295

Solving for fluid region fume
DILUPBiCG:  Solving for Ux, Initial residual = 0.0199697, Final residual = 0.0008280021, No Iterations 1
DILUPBiCG:  Solving for Uy, Initial residual = 0.1334775, Final residual = 0.007614913, No Iterations 1
DILUPBiCG:  Solving for Uz, Initial residual = 0.1267019, Final residual = 0.006066752, No Iterations 1
DILUPBiCG:  Solving for h, Initial residual = 0.008734778, Final residual = 0.0003510015, No Iterations 2
Min/max T:297.528 873
GAMG:  Solving for p_rgh, Initial residual = 0.8375047, Final residual = 0.03764495, No Iterations 1000
time step continuity errors : sum local = 0.6269954, global = -0.01164683, cumulative = -0.0359967
Min/max rho:0.3691154 1.16368
DILUPBiCG:  Solving for epsilon, Initial residual = 0.1786266, Final residual = 0.003092718, No Iterations 1
DILUPBiCG:  Solving for k, Initial residual = 0.1973878, Final residual = 0.0100348, No Iterations 2

Solving for solid region duct
DICPCG:  Solving for h, Initial residual = 0.2881169, Final residual = 0.0007063077, No Iterations 1
Min/max T:298.9668 300.4051
ExecutionTime = 10.96 s  ClockTime = 11 s

Time = 5


Solving for fluid region air
DILUPBiCG:  Solving for Ux, Initial residual = 0.1466593, Final residual = 0.007074396, No Iterations 1
DILUPBiCG:  Solving for Uy, Initial residual = 0.06904185, Final residual = 0.004619607, No Iterations 1
DILUPBiCG:  Solving for Uz, Initial residual = 0.1118558, Final residual = 0.006564061, No Iterations 1
DILUPBiCG:  Solving for h, Initial residual = 0.2891947, Final residual = 0.01391482, No Iterations 2
Min/max T:-1028.41 1530.922
GAMG:  Solving for p_rgh, Initial residual = 0.5476232, Final residual = 0.005112517, No Iterations 8
time step continuity errors : sum local = 0.1420783, global = 0.0001118252, cumulative = -0.03588488
Min/max rho:0.2 2
DILUPBiCG:  Solving for epsilon, Initial residual = 0.06832264, Final residual = 0.003890928, No Iterations 1
DILUPBiCG:  Solving for k, Initial residual = 0.116786, Final residual = 0.007913494, No Iterations 2
bounding k, min: -19.92499 max: 2166.974 average: 26.66811

Solving for fluid region fume
DILUPBiCG:  Solving for Ux, Initial residual = 0.06167192, Final residual = 0.002577803, No Iterations 1
DILUPBiCG:  Solving for Uy, Initial residual = 0.2057269, Final residual = 0.01041299, No Iterations 1
DILUPBiCG:  Solving for Uz, Initial residual = 0.2193009, Final residual = 0.01016463, No Iterations 1
DILUPBiCG:  Solving for h, Initial residual = 0.005325784, Final residual = 0.0002819179, No Iterations 2
Min/max T:297.252 873
GAMG:  Solving for p_rgh, Initial residual = 0.6903963, Final residual = 0.01323959, No Iterations 1000
time step continuity errors : sum local = 0.1716709, global = 0.00316045, cumulative = -0.03272443
Min/max rho:0.2136852 1.341727
DILUPBiCG:  Solving for epsilon, Initial residual = 0.06676783, Final residual = 0.001963593, No Iterations 1
DILUPBiCG:  Solving for k, Initial residual = 0.1674929, Final residual = 0.007493294, No Iterations 2

Solving for solid region duct
DICPCG:  Solving for h, Initial residual = 0.4740359, Final residual = 0.0007971916, No Iterations 1
Min/max T:230.8002 335.3638
ExecutionTime = 13.87 s  ClockTime = 14 s

Time = 6


Solving for fluid region air
DILUPBiCG:  Solving for Ux, Initial residual = 0.1813033, Final residual = 0.008672431, No Iterations 1
DILUPBiCG:  Solving for Uy, Initial residual = 0.06567908, Final residual = 0.003131843, No Iterations 1
DILUPBiCG:  Solving for Uz, Initial residual = 0.1290634, Final residual = 0.008479523, No Iterations 1
DILUPBiCG:  Solving for h, Initial residual = 0.1528493, Final residual = 0.004408951, No Iterations 2
[13]
[13]
[13] --> FOAM FATAL ERROR:
[13] Maximum number of iterations exceeded
[13]
[13]    From function Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scalar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar)const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar)const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar)const) const [with Thermo = Foam::hConstThermo<Foam::perfectGas<Foam::specie> >; Type = Foam::sensibleEnthalpy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy>]
[13]    in file /home/laurent/OpenFOAM/OpenFOAM-3.0.1/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 66.
[13]
FOAM parallel run aborting
[13]
[13] #0  Foam::error::printStack(Foam::Ostream&) at ??:?
[13] #1  Foam::error::abort() at ??:?
[13] #2  Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy>::THs(double, double, double) const at ??:?
[13] #3  Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::calculate() at ??:?
[13] #4  Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::correct() at ??:?
[13] #5  ? at ??:?
[13] #6  __libc_start_main in "/lib64/libc.so.6"
[13] #7  ? at /home/abuild/rpmbuild/BUILD/glibc-2.19/csu/../sysdeps/x86_64/start.S:125
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 13 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------


Ahmed Khattab January 20, 2016 13:59

Please revise your boundary conditions.

Also, please check user manual for max number of iterations setting, that you may set unintensionally.

laurent98 January 22, 2016 17:42

3 Attachment(s)
hi Ahmed,
thank very much for helping.
i post one of the many BC i have try...
and a little drawing of the physical problem, gaz going through a pipe.
i could not find where to increases the maximum number of iteration...
the solution is may be to run a transient solver first?

Ahmed Khattab January 22, 2016 18:19

Hi Laurant,

I think you have a problem with your air velocity and pressure boundary conditions. Try converting inlet pressure and outlet velocity to zero gradient

laurent98 January 22, 2016 18:51

1 Attachment(s)
the simulation is running only with laminar option, but the velocity of air goes up to 59 m/s ... for 1m./s at inlet
and if i turn kEpsilon option after 4 times step i got:
Quote:

Time = 4


Solving for fluid region air
DILUPBiCG: Solving for Ux, Initial residual = 0.322841, Final residual = 0.01321862, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 0.7966811, Final residual = 0.01263297, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 0.5848599, Final residual = 0.01065549, No Iterations 1
DILUPBiCG: Solving for h, Initial residual = 0.9923653, Final residual = 0.02202294, No Iterations 2
Min/max T:-61693.21 78219.37
thank you for helping

wyldckat March 28, 2016 14:22

Greetings to all!

I had this thread on my to-do list because of laurent98's questions and I finally today managed to take a look into it.

Unfortunately, since almost no information was provided about the case set-up, I'm not able to even try and guess what's wrong :(

@laurent98: If you have not yet solved this problem in your case, then please follow the instructions given on this thread: http://www.cfd-online.com/Forums/ope...-get-help.html

Best regards,
Bruno

alib022 March 30, 2016 12:12

Bruno,

I know this is an old thread but I am facing the exact problem. I'm trying to solve a heat exchanger problem using chtMultiRegionSimpleFoam and the temperature goes to -90 and then it crashes. I opened a new thread a while ago and didnt get any response over there (http://www.cfd-online.com/Forums/ope...implefoam.html)

Going through different threads I found out maybe if I run my model as transient for a few time steps and then use that data as my IC it would work. Which it didnt and I am getting the following error:

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  3.0.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 3.0.1-119cac7e8750
Exec  : chtMultiRegionFoam
Date  : Mar 30 2016
Time  : 11:07:11
Host  : "node1"
PID    : 31430
Case  : /home/cssllab/Desktop/multiRegionHeater
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

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

Create fluid mesh for region air_domain for time = 0

Create fluid mesh for region water_domain for time = 0

Create solid mesh for region solid_domain for time = 0

*** Reading fluid mesh thermophysical properties for region air_domain

    Adding to thermoFluid

Selecting thermodynamics package
{
    type            heRhoThermo;
    mixture        pureMixture;
    transport      polynomial;
    thermo          hPolynomial;
    equationOfState icoPolynomial;
    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 kEpsilon
kEpsilonCoeffs
{
    Cmu            0.09;
    C1              1.44;
    C2              1.92;
    C3              -0.33;
    sigmak          1;
    sigmaEps        1.3;
}

Radiation model not active: radiationProperties not found
Selecting radiationModel none
    Adding to KFluid

    Adding to dpdtFluid

    Adding MRF

No MRF models present

    Adding fvOptions

No finite volume options present

*** Reading fluid mesh thermophysical properties for region water_domain

    Adding to thermoFluid

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

    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 laminar
Radiation model not active: radiationProperties not found
Selecting radiationModel none
    Adding to KFluid

    Adding to dpdtFluid

    Adding MRF

No MRF models present

    Adding fvOptions

No finite volume options present

*** Reading solid mesh thermophysical properties for region solid_domain

    Adding to thermos

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

    Adding to radiations

Radiation model not active: radiationProperties not found
Selecting radiationModel none
    Adding fvOptions

No finite volume options present

Region: air_domain Courant Number mean: 0.01195979 max: 0.6265122
Region: water_domain Courant Number mean: 0.09387028 max: 0.7258117
Region: solid_domain Diffusion Number mean: 2.409372e-05 max: 6.511168e-05
Region: air_domain Courant Number mean: 0.01195979 max: 0.6265122
Region: water_domain Courant Number mean: 0.09387028 max: 0.7258117
Region: solid_domain Diffusion Number mean: 2.409372e-05 max: 6.511168e-05
Time = 0.001


Solving for fluid region air_domain
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#4  Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#5  Foam::diagonalSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:?
#7  Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:?
#8  Foam::fvMatrix<double>::solve() at ??:?
#9  ? at ??:?
#10  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11  ? at ??:?
Floating point exception (core dumped)

I was wondering if you can take a look at my thread and let me know what am I doing wrong.
(http://www.cfd-online.com/Forums/ope...implefoam.html)

Thanks
Ali

derekm March 30, 2016 15:32

have you changing the values of the
nNonOrthogonalCorrectors or the relaxationFactors in system/fluid_region/fvSolution?
a resource that helped me step up and solve such issues was this
http://www.dicat.unige.it/guerrero/o...sandtricks.pdf

Cheers, derek

Code:

SIMPLE
{
    momentumPredictor on;
    nNonOrthogonalCorrectors 0;
    pRefCell        0;
    pRefValue      100000;
    rhoMin          rhoMin [1 -3 0 0 0] 0.2;
    rhoMax          rhoMax [1 -3 0 0 0] 2;
}

relaxationFactors
{
    fields
    {
        rho            1.0;
        p_rgh          0.7;
    }
    equations
    {
        U              0.3;
        h              0.7;

        "(k|epsilon|omega)" 0.7;
        G              0.7;
        "ILambda.*"    0.7;
        Qr              0.7;
    }
}


laurent98 March 30, 2016 16:26

2 Attachment(s)
Hi Bruno,
thank you very much for your interest, i didn't solve my problem with openfoam yet but i made a simplest computation by hand with classical thermic formulations.
please find attach a general presentation of the problem.
i'am sorry to not be on my computer now, i have not access right now to my OF's files
best regards Laurent

alib022 March 30, 2016 18:06

Derek,

Thanks for the response. I actually did play with the relaxation factors a lot!
My last test was that I fixed the temp. every where to see if the solution still explodes which it did! So, now I'm looking different ways to see if I can find some answers for my problem.

zfaraday March 31, 2016 08:43

Hi Laurent!

As per the little information you provided related to your error some posts above, it seems that you are probably using an excessively high time step. Some time ago I faced a very similar problem to yours and setting adjustTimeStep to yes in controlDict helped me a lot!

Besides that, check that your inlet and outlet BC's are the proper ones.

Hope it helps you a little with your struggle!

Best regards,

Alex


All times are GMT -4. The time now is 15:37.