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

Error "Unknown null-constructable patchField type kqRWallFunction for patch cyclone "

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2023, 05:59
Question Error "Unknown null-constructable patchField type kqRWallFunction for patch cyclone "
  #1
New Member
 
Ishak
Join Date: Dec 2023
Posts: 2
Rep Power: 0
Ishak.Mazing is on a distinguished road
Hello Everyone,

I'm trying to update a PANS turbulent model that I compiled back then in OpenFoam v7 but now with the new version of OpenFoam v11 I was obliged to change some new command..

Whatever, I correct and update the code with the new command and it compiled as well.
but when I try to launch a simulation I got this error :
Code:
--> FOAM FATAL ERROR: 
Unknown null-constructable patchField type kqRWallFunction for patch cyclone of type wall for field kU

Valid null-constructable patchField types are :

24
(
calculated
cyclic
cyclicSlip
empty
extrapolatedCalculated
fixedEnergy
fixedUnburntEnthalpy
fixedValue
gradientEnergy
gradientUnburntEnthalpy
internal
mixedEnergy
mixedUnburntEnthalpy
nonConformalCyclic
nonConformalError
nonConformalProcessorCyclic
processor
processorCyclic
slip
symmetry
symmetryPlane
wedge
zeroGradient
zeroInletOutlet
)


    From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::word&, const Foam::word&, const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&) [with Type = double]
    in file lnInclude/fvPatchFieldNew.C at line 51.

FOAM aborting
I check the specifed wall (cyclone) and thier was a wall function : kqRWallFunction. I tried to delete the kU file, same problem. The simulation works only when I change the wall function in the "k" file ..

The turbulence model called PANS and here's somme of the added constructor :
Code:
    fEpsilon_
    (
        dimensioned<scalar>::lookupOrAddToDict
        (
            "fEpsilon",
            this->coeffDict_,
            1.0
        )
    ),    
    uLim_
    (
        dimensioned<scalar>::lookupOrAddToDict
        (
            "fKupperLimit",
            this->coeffDict_,
            1.0
        )
    ),
    loLim_
    (
        dimensioned<scalar>::lookupOrAddToDict
        (
            "fKlowerLimit",
            this->coeffDict_,
            0.1
        )
    ),
    fK_
    (
        IOobject
        (
            this->groupName("fK"),
            this->runTime_.name(),
            this->mesh_,
            IOobject::NO_READ,
            IOobject::AUTO_WRITE
        ),
        this->mesh_,
        dimensionedScalar("zero",loLim_)
    ),
    
    C2U
    (
        IOobject
        (
            "C2U",
            this->runTime_.timeName(),
            this->mesh_
        ),
        C1_ + (fK_/fEpsilon_)*(C2_ - C1_)
    ),
    
    delta_
    (
        LESdelta::New
        (
            IOobject::groupName("delta", U.group()),
            *this,
            this->coeffDict_
        )
    ),
    k_
    (
        IOobject
        (
            this->groupName("k"),
            this->runTime_.name(),
            this->mesh_,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        this->mesh_
    ),
    kU_
    (
        IOobject
        (
            this->groupName("kU"),
            this->runTime_.name(),
            this->mesh_,
            IOobject::NO_READ,
            IOobject::AUTO_WRITE
        ),
        //this->mesh_,
        k_*fK_,
        k_.boundaryField().types()
        
    ),    
    epsilon_
    (
        IOobject
        (
            this->groupName("epsilon"),
            this->runTime_.name(),
            this->mesh_,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        this->mesh_
    ),
    epsilonU_
    (
        IOobject
        (
            this->groupName("epsilonU"),
            this->runTime_.name(),
            this->mesh_,
            IOobject::NO_READ,
            IOobject::AUTO_WRITE
        ),
        //this->mesh_
        epsilon_*fEpsilon_,
        epsilon_.boundaryField().types()
    )
Can you help please ?
Ishak.Mazing is offline   Reply With Quote

Old   December 8, 2023, 07:30
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Should patch be of type wall allowing wall bc to be applied?
dlahaye is offline   Reply With Quote

Reply

Tags
c++ code, openfoam 11, turbulence free


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
convergence problem of steady 2D film cooling calculation using chtMultiRegionFoam ruanyg968tf OpenFOAM Running, Solving & CFD 1 April 10, 2024 02:23
[Commercial meshers] Problem with Mesh conversion from FLUENT Meshing to OpenFOAM mn17jyf OpenFOAM Meshing & Mesh Conversion 3 November 1, 2023 09:49
Instability in buoyantSimpleFoam Avandri OpenFOAM Running, Solving & CFD 0 August 7, 2020 16:13
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 17:08
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 09:03.