|
[Sponsors] |
ERROR : Attempt to return dictionary entry as a primitive |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 25, 2023, 06:17 |
ERROR : Attempt to return dictionary entry as a primitive
|
#1 |
Member
desimuser1
Join Date: Mar 2023
Posts: 35
Rep Power: 3 |
I was using MPPICFoam, with injectionChannel as the base case, i am getting error in the kinematicCloudProperties
# UBUNTU TERMINAL # /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _66908158ae-20221220 OPENFOAM=2212 version=v2212 Arch : "LSB;label=32;scalar=64" Exec : MPPICFoam -parallel Date : May 25 2023 Time : 14:24:15 Host : desim1 PID : 189278 I/O : uncollated Case : /home/desim1/OpenFOAM/desim1-10/run/sir3_v2212_injectionChannel/injectionChannel1_desim nProcs : 12 Hosts : ( (desim1 12) ) Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Reading g Reading field U Reading field p Reading/calculating continuous-phase face flux field phic Creating turbulence model Selecting incompressible transport model Newtonian Creating field alphac Constructing kinematicCloud kinematicCloud Constructing particle forces Selecting particle force WenYuDrag Constructing cloud functions none Constructing particle injection models Creating injector: model1 Selecting injection model patchInjection Constructing 3-D injection Choosing nParticle to be a fixed value, massTotal variable now does not determine anything. Selecting distribution model normal Selecting dispersion model none Selecting patch interaction model localInteraction [0] [4] [4] [4] [7] [7] [7] --> FOAM FATAL IO ERROR: (openfoam-2212[8] [8] [8] --> FOAM FATAL IO ERROR: (openfoam-2212) [8] Attempt to return dictionary entry as a primitive [8] [8] file: stream.subModels.localInteractionCoeffs.patches at line 0.[9] [9] // the error continues # kinematicCloudProperties FILE # /*--------------------------------*- 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 kinematicCloudProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solution { active true; coupled true; transient yes; cellValueSourceCorrection on; interpolationSchemes { rho.air cell; U.air cellPoint; mu.air cell; } averagingMethod basic; integrationSchemes { U Euler; } sourceTerms { schemes { U semiImplicit 1; } } } constantProperties { rho0 1604; alphaMax 0.9; } subModels { particleForces { WenYuDrag { alphac alpha.air; } } injectionModels { model1 { type patchInjection; parcelBasisType fixed; patch "INLET"; U0 (0 40 0); nParticle 1; parcelsPerSecond 1390885; sizeDistribution { type normal; normalDistribution { mu 650e-6; sigma 25e-6; minValue 500e-6; maxValue 800e-6; } } flowRateProfile constant 1; massTotal 0.002; SOI 1; duration 60; } }; dispersionModel none; patchInteractionModel localInteraction; localInteractionCoeffs { type patchInjection; patches { patch "OUTER_WALL|INNER_WALL|DUST_OUT|INLET" { type rebound; e 1; mu 0; }; patch "OUTLET_AIR" { type escape; }; } }; /* massTotal 0.002; SOI 1; parcelBasisType fixed; nParticle 1; flowRateProfile constant 1; */ surfaceFilmModel none; packingModel none; dampingModel relaxation; relaxationCoeffs { timeScaleModel { type nonEquilibrium; alphaPacked 0.58; e 0.9; } } isotropyModel stochastic; stochasticCoeffs { timeScaleModel { type isotropic; alphaPacked 0.58; e 0.9; } } stochasticCollisionModel none; } cloudFunctions {} I WAS TRYING TO SIMULATE CYCLONE SEPERATOR WITH AIR AND SAND can someone please point out the error |
|
May 25, 2023, 06:51 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27 |
Hello,
This syntax is wrong: Code:
localInteractionCoeffs { type patchInjection; patches { patch "OUTER_WALL|INNER_WALL|DUST_OUT|INLET" { type rebound; e 1; mu 0; }; patch "OUTLET_AIR" { type escape; }; } }; Code:
localInteractionCoeffs { patches ( "(OUTER_WALL|INNER_WALL|DUST_OUT|INLET)" { type rebound; e 1; mu 0; } OUTLET_AIR { type escape; } ); } Also your message is pretty hard to read, please put some effort into your message formatting (for instance using [CODE] tags for files and logs snippets) Regards, Yann |
|
May 26, 2023, 07:48 |
|
#3 |
Member
desimuser1
Join Date: Mar 2023
Posts: 35
Rep Power: 3 |
thank you yann, i will look into it
|
|
August 11, 2023, 08:58 |
scale down
|
#4 |
Member
desimuser1
Join Date: Mar 2023
Posts: 35
Rep Power: 3 |
thanks yann it worked,
i am trying to simulate a swirl tube, but since swirl tubes are very small i cannot simulate in MPPIC foam, i am getting convergence, but as soon as particle injects, courant number blows up to 10e+42, any way i can scale down the tutorial, any advice on scaling the MPPICFoam |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
buoyantSimpleRadiationFoam - "Attempt to return primitive entry [...] mixture [...]" | javad814 | OpenFOAM | 6 | June 14, 2022 01:57 |
Duplicate entry alphaContactAngle in runtime selection table fvPatchField | Roesch | OpenFOAM Programming & Development | 2 | January 12, 2021 04:35 |
meshing of a compound volume in GMSH | shawn3531 | OpenFOAM | 4 | March 12, 2015 11:45 |
Creating a new field from terms of the turbulence model | HaZe | OpenFOAM Programming & Development | 15 | November 24, 2014 14:51 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |