View Issue Details

IDProjectCategoryView StatusLast Update
0002876OpenFOAMContributionpublic2018-03-14 19:11
Reporterleebhai Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionunable to reproduce 
PlatformUbuntu 16.04OSOtherOS Version(please specify)
Summary0002876: Error while compilation of new solver phaseChangeHeatFoam with Dynamic Meshing
DescriptionI am trying to incorporate dynamic mesh with phaseChangeHeatFoam. phaseChangeHeatFoam is basically modified version of interFoam. so we tried to incorporate dynamic mesh and tried to make phaseChangeHeatDyMFoam in similar manner like interDyMFoam was compiled by making few changes in interDyMFoam files.

While running code i am getting this error:


Create time

Create mesh for time = 0

Selecting dynamicFvMesh dynamicRefineFvMesh
Reading field p_rgh

Reading field T

Reading field alpha1

Reading field U

Reading/calculating face flux field phi

Creating phaseChangeTwoPhaseMixture

Selecting phaseChange model Hardt
Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar

Reading g

Reading hRef
Calculating field g.h

No finite volume options present

Creating field kinetic energy K


PIMPLE: Operating solver in PISO mode

time step continuity errors : sum local = 2.3774014e-11, global = -2.3711534e-20, cumulative = -2.3711534e-20
GAMGPCG: Solving for pcorr, Initial residual = 1, Final residual = 1.7372879e-06, No Iterations 21
time step continuity errors : sum local = 4.1428539e-17, global = -2.7612587e-19, cumulative = -2.998374e-19
Courant Number mean: 0.017258837 max: 0.020827511

Starting time loop

Interface Courant Number mean: 0 max: 0
Courant Number mean: 0.017087957 max: 0.020621298
deltaT = 1.1764706e-06
Time = 1.17647e-06

Selected 6000 cells for refinement out of 24750.
Refined from 24750 to 66750 cells.
Selected 0 split points out of a possible 6000.
Execution time for mesh.update() = 0.57 s
time step continuity errors : sum local = 0.016933131, global = 2.8931099e-13, cumulative = 2.8931069e-13


--> FOAM FATAL ERROR:
field does not correspond to level 0 sizes: field = 66750 level = 24750

    From function void GAMGAgglomeration::restrictField(Field<Type>& cf, const Field<Type>& ff, const label fineLevelIndex) const
    in file lnInclude/GAMGAgglomerationTemplates.C at line 47.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 void Foam::GAMGAgglomeration::restrictField<double>(Foam::Field<double>&, Foam::Field<double> const&, int) const at ??:?
#3 Foam::GAMGSolver::agglomerateMatrix(int) at ??:?
#4 Foam::GAMGSolver::GAMGSolver(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::dictionary const&) at ??:?
#5 Foam::GAMGPreconditioner::GAMGPreconditioner(Foam::lduMatrix::solver const&, Foam::dictionary const&) at ??:?
#6 Foam::lduMatrix::preconditioner::addsymMatrixConstructorToTable<Foam::GAMGPreconditioner>::New(Foam::lduMatrix::solver const&, Foam::dictionary const&) at ??:?
#7 Foam::lduMatrix::preconditioner::New(Foam::lduMatrix::solver const&, Foam::dictionary const&) at ??:?
#8 Foam::PCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#9 Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:?
#10 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:?
#11 Foam::fvMatrix<double>::solve() at ??:?
#12
 at ??:?
#13 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#14
 at ??:?
Aborted (core dumped)
TagsNo tags attached.

Activities

leebhai

2018-03-14 11:46

reporter  

U (1,366 bytes)   
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.0.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
        
    Inlet_Air
    {
       type            fixedValue;
       value           uniform (0 0 17.42);
    }
     Inlet_Liq
    {
       type            fixedValue;
       value           uniform (0 0 0.455);
    }

    Wall
    {
        type        uniformFixedValue;
        uniformValue  constant (0 0 0);
        value        uniform (0 0 0);
    }

    Outlet
    {
        type        zeroGradient;
    }
    
    
}


// ************************************************************************* //
U (1,366 bytes)   

henry

2018-03-14 19:11

manager   ~0009419

phaseChangeHeatFoam is not part of OpenFOAM, it looks like there is an error in this application and you will need to arrange for support.

Issue History

Date Modified Username Field Change
2018-03-14 11:46 leebhai New Issue
2018-03-14 11:46 leebhai File Added: U
2018-03-14 19:11 henry Assigned To => henry
2018-03-14 19:11 henry Status new => closed
2018-03-14 19:11 henry Resolution open => unable to reproduce
2018-03-14 19:11 henry Note Added: 0009419