View Issue Details

IDProjectCategoryView StatusLast Update
0003999OpenFOAMBugpublic2023-07-25 09:30
Reporterjkau Assigned Towill  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version22.04
Product Version11 
Fixed in Version11 
Summary0003999: NCC raises fatal error when using in combination with PLIC
DescriptionWhen using PLIC interface comperssion with NCC the solver immediately exits with:

[5] --> FOAM FATAL ERROR:
[5] The start face is not defined for a nonConformal patch with a non-zero number of faces
[5]
[5] From function virtual Foam::label Foam::nonConformalFvPatch::start() const
[5] in file fvMesh/fvPatches/constraint/nonConformal/nonConformalFvPatch.C at line 98.
Steps To ReproduceIn tutorials/incompressibleVoF/propeller:

1. Iniialize the field with attached setFields dictionary.
2. change div(phi,alpha) scheme to Gauss PLIC interfaceCompression vanLeer 1;
3. run

Additional Informationhappens also with dev and 10
TagsNo tags attached.

Activities

jkau

2023-07-24 15:14

reporter  

setFieldsDict (1,164 bytes)   
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  dev
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
    volScalarFieldValue alpha.water 0
);

regions
(
    // Set cell values
    // (does zerogradient on boundaries)
    boxToCell
    {
        box (-999 -999 -999) (999 999 0);

        fieldValues
        (
            volScalarFieldValue alpha.water 1
        );
    }

    // Set patch values (using ==)
    boxToFace
    {
        box (-999 -999 -999) (999 999 0);

        fieldValues
        (
            volScalarFieldValue alpha.water 1
        );
    }
);

// ************************************************************************* //
setFieldsDict (1,164 bytes)   

will

2023-07-25 09:30

manager   ~0013084

Yes, NCC and PLIC/MPLIC are not compatible. I have added an error message which makes this clear. I consider this to have "resolved" the issue. It is not a bug, it is a missing bit of functionality.

https://github.com/OpenFOAM/OpenFOAM-11/commit/503f8884c2c51a4f0ea0275f2a89608e402890d1
https://github.com/OpenFOAM/OpenFOAM-dev/commit/d98d2c371adce6bf2224d9149c9ac4bf97d5ab5d

Making NCC and PLIC/MPLIC compatible would require a modest development effort, which would need to be paid for. If you wish to do so, please contant CFD Direct (i.e., use https://cfd.direct/contact/ if you are not an existing customer).

Issue History

Date Modified Username Field Change
2023-07-24 15:14 jkau New Issue
2023-07-24 15:14 jkau File Added: setFieldsDict
2023-07-25 09:30 will Assigned To => will
2023-07-25 09:30 will Status new => resolved
2023-07-25 09:30 will Resolution open => fixed
2023-07-25 09:30 will Fixed in Version => 11
2023-07-25 09:30 will Note Added: 0013084