|
[Sponsors] |
June 6, 2023, 04:20 |
atmPlantCanopyUSource Not Found
|
#1 |
New Member
Join Date: Jun 2023
Posts: 4
Rep Power: 3 |
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"); 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] } } // ************************************************************************* // |
|
June 13, 2024, 03:23 |
|
#2 |
Member
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 48
Rep Power: 3 |
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? |
|
June 13, 2024, 03:28 |
|
#3 | |
New Member
Join Date: Jun 2023
Posts: 4
Rep Power: 3 |
Quote:
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 |
||
Tags |
fvoptions, openfaom, plant, simplefoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |