|
[Sponsors] |
Using lcsMassFraction function object for icoUncoupledKinematicParcelFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 15, 2015, 12:01 |
Using lcsMassFraction function object for icoUncoupledKinematicParcelFoam
|
#1 |
Senior Member
|
Hi,
Before, I had used lcsMassFraction(cloudName) from swak4Foam function objects to convert lagrangian particle concentration into eulerian mass fraction. This was how I did that and it worked perfectly: Code:
mu { type expressionField; expression "18.6"; dimension [1 -1 -1 0 0 0 0]; fieldName mu; autowrite true; } rho { type expressionField; expression "1.25"; dimension [1 -3 0 0 0 0 0]; fieldName rho; autowrite true; } particles { type evolveKinematicCloud; cloudName particleCloud; g "down" [0 1 -2 0 0 0 0] (0 -9.81 0 ); rhoName rho; muName mu; UName U; } massFractionKinematic { type expressionField; autowrite true; expression "lcsMassFraction(particleCloud)"; outputControl timeStep; outputInterval 1; fieldName massFraction; } Code:
massFractionKinematic { type expressionField; autowrite true; expression "lcsMassFraction(kinematicCloud)"; outputControl timeStep; outputInterval 1; fieldName massFraction; } Code:
swak4Foam: Setting default mesh Available clouds in region0 Name | Type ------------------------------------------------------------- kinematicCloud | Cloud<basicKinematicCollidingParcel> ------------------------------------------------------------- Cloud kinematicCloud has type Cloud<basicKinematicCollidingParcel> typeid:N4Foam14CollidingCloudINS_14KinematicCloudINS_5CloudINS_15CollidingParcelINS_15KinematicParcelINS_8particleEEEEEEEEEEE --> FOAM FATAL ERROR: No matching cloud kinematicCloud found Supported cloud types (typeid): 4 ( N4Foam13ReactingCloudINS_11ThermoCloudINS_14KinematicCloudINS_5CloudINS_14ReactingParcelINS_12ThermoParcelINS_15KinematicParcelINS_8particleEEEEEEEEEEEEEEE N4Foam11ThermoCloudINS_14KinematicCloudINS_5CloudINS_12ThermoParcelINS_15KinematicParcelINS_8particleEEEEEEEEEEE N4Foam14KinematicCloudINS_5CloudINS_15KinematicParcelINS_8particleEEEEEEE N4Foam23ReactingMultiphaseCloudINS_13ReactingCloudINS_11ThermoCloudINS_14KinematicCloudINS_5CloudINS_24ReactingMultiphaseParcelINS_14ReactingParcelINS_12ThermoParcelINS_15KinematicParcelINS_8particleEEEEEEEEEEEEEEEEEEE ) From function Plugin function lcsMassFraction in file lcsMassFractionPluginFunction.C at line 102. FOAM exiting Thanks.
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|
May 23, 2016, 02:57 |
|
#2 | |
Member
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
using METIS functions in fortran | dokeun | Main CFD Forum | 7 | January 29, 2013 05:06 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 05:37 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |