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

atmPlantCanopyUSource Not Found

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2023, 04:20
Default atmPlantCanopyUSource Not Found
  #1
New Member
 
Join Date: Jun 2023
Posts: 4
Rep Power: 3
JSSS is on a distinguished road
So I was trying to run a model in simpleFoam (RAS k-E model) and the hope was to have a plant canopy as a source in the domain

I am getting the following error:

Code:
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  10
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 10-c4cf895ad8fa
Exec   : simpleFoam
Date   : Jun 06 2023
Time   : 08:10:21
Host   : "amun"
PID    : 3138812
I/O    : uncollated
Case   : 
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0


SIMPLE: Convergence criteria found
        p: tolerance 0.0001
        U: tolerance 0.0001
        "(k|omega|epsilon)": tolerance 0.0001

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting viscosity model constant
Selecting turbulence model type RAS
Selecting RAS turbulence model kEpsilon
RAS
{
    model           kEpsilon;
    turbulence      on;
    printCoeffs     on;
    Cmu             0.09;
    C1              1.44;
    C2              1.92;
    C3              0;
    sigmak          1;
    sigmaEps        1.3;
}

No MRF models present

--> FOAM Warning : Creating fvModels from "constant/fvOptions"

Selecting finite volume model type atmPlantCanopyUSource


--> FOAM FATAL IO ERROR: 
Unknown fvModel atmPlantCanopyUSource

Valid fvModels are:

22
(
accelerationSource
actuationDiskSource
buoyancyEnergy
buoyancyForce
coded
effectivenessHeatExchangerSource
explicitPorositySource
heatSource
heatTransfer
interRegionExplicitPorositySource
interRegionHeatTransfer
isotropicDamping
massSource
phaseLimitStabilisation
radialActuationDiskSource
rotorDisk
semiImplicitSource
sixDoFAccelerationSource
solidEquilibriumEnergySource
solidificationMeltingSource
verticalDamping
volumeFractionSource
)

    From function static Foam::autoPtr<Foam::fvModel> Foam::fvModel::New(const Foam::word&, const Foam::dictionary&, const Foam::fvMesh&)
    in file cfdTools/general/fvModels/fvModel.C at line 117.

FOAM exiting

I understand that I need to include the lib in the controlDict which currently is as follows

Code:
FoamFile
{
    version         2;
    format          ascii;
    class           dictionary;
    location        "system";
    object          controlDict;
}

application     simpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         1000;

deltaT          0.1;

writeControl    timeStep;

writeInterval   10;

purgeWrite      0;

writeFormat     ascii;

writePrecision  7;

writeCompression on;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

libs ("atmosphericModels.so");
libs ("libatmosphericModels.so");
are these the correct library names I need to include?


For context this is my fvOptions

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2212                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //



atmPlantCanopyUSource1
{
    // Mandatory entries (unmodifiable)
    type                  atmPlantCanopyUSource;
    atmPlantCanopyUSourceCoeffs
    {
        // Mandatory (inherited) entries (unmodifiable)
        selectionMode    barrier1Blockage;
        plantCd          0.2;   // Plant canopy drag coefficient          [-]
        leafAreaDensity  2;     // Leaf area density                      [1/m]
    }
}
atmPlantCanopyUSource2
{
    // Mandatory entries (unmodifiable)
    type                  atmPlantCanopyUSource;
    atmPlantCanopyUSourceCoeffs
    {
        // Mandatory (inherited) entries (unmodifiable)
        selectionMode    barrier2Blockage;
        plantCd          0.2;   // Plant canopy drag coefficient          [-]
        leafAreaDensity  2;     // Leaf area density                      [1/m]
    }
}

atmPlantCanopyTurbSource1
{
    // Mandatory entries (unmodifiable)
    type                  atmPlantCanopyTurbSource;
    atmPlantCanopyUSourceCoeffs
    {
        // Mandatory (inherited) entries (unmodifiable)
        selectionMode    barrier1Blockage;
        plantCd          0.2;   // Plant canopy drag coefficient              [-]
        leafAreaDensity  2;     // Leaf area density                          [1/m]
    }
}
atmPlantCanopyTurbSource2
{
    // Mandatory entries (unmodifiable)
    type                  atmPlantCanopyTurbSource;
    atmPlantCanopyUSourceCoeffs
    {
        // Mandatory (inherited) entries (unmodifiable)
        selectionMode    barrier2Blockage;
        plantCd          0.2;   // Plant canopy drag coefficient              [-]
        leafAreaDensity  2;     // Leaf area density                          [1/m]
    }
}

// ************************************************************************* //
This is my first post here, please let me know if there's any more info that I can provide
JSSS is offline   Reply With Quote

Old   June 13, 2024, 03:23
Default
  #2
Member
 
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 48
Rep Power: 3
MMRC is on a distinguished road
Hi JSSS, did you solve this?
I'm taking a look and LAD and Cd are defined as scalarfied to apply as B.C, so it looks like they don't have to be declared inside the fvOption,

Did you find your way to use this tool?
MMRC is offline   Reply With Quote

Old   June 13, 2024, 03:28
Default
  #3
New Member
 
Join Date: Jun 2023
Posts: 4
Rep Power: 3
JSSS is on a distinguished road
Quote:
Originally Posted by MMRC View Post
Hi JSSS, did you solve this?
I'm taking a look and LAD and Cd are defined as scalarfied to apply as B.C, so it looks like they don't have to be declared inside the fvOption,

Did you find your way to use this tool?
Hello MMRC,

Yes I did. I was using OpenFOAM.org when I posted this which apparently doesn't have these fvOptions available (as seen in the list provided in the error raised, they are not there). The fix to this was switching from the OpenFOAM.org implementation to the OpenFOAM.com one.

Thank you for posting, I had completely forgotten to update my situation here for people who may potentially come across the same roadblock
JSSS is offline   Reply With Quote

Reply

Tags
fvoptions, openfaom, plant, simplefoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[RapidCFD] Discussion thread on how to install and use RapidCFD newoscar OpenFOAM Community Contributions 88 May 17, 2024 10:39
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 16:11
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 06:29
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32


All times are GMT -4. The time now is 11:52.