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

Using lcsMassFraction function object for icoUncoupledKinematicParcelFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2015, 12:01
Question Using lcsMassFraction function object for icoUncoupledKinematicParcelFoam
  #1
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 16
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
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;
    }
However when I try to use it in solver icoUncoupledKinematicParcelFoam, like this:

Code:
massFractionKinematic
    {
        type expressionField;
        autowrite true;
        expression "lcsMassFraction(kinematicCloud)";
        outputControl timeStep;
        outputInterval 1;
        fieldName massFraction;
    }
I get the following error:

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
Any suggestions is appreciated.
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"
Mojtaba.a is offline   Reply With Quote

Old   May 23, 2016, 02:57
Default
  #2
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
Quote:
Originally Posted by Mojtaba.a View Post
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;
    }
However when I try to use it in solver icoUncoupledKinematicParcelFoam, like this:

Code:
massFractionKinematic
    {
        type expressionField;
        autowrite true;
        expression "lcsMassFraction(kinematicCloud)";
        outputControl timeStep;
        outputInterval 1;
        fieldName massFraction;
    }
I get the following error:

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
Any suggestions is appreciated.
Thanks.
have you solved your problem?
chpjz0391 is offline   Reply With Quote

Reply


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
[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


All times are GMT -4. The time now is 19:37.