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

About "mesh_" and "obr_" in the "IOobject".

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2021, 06:11
Question About "mesh_" and "obr_" in the "IOobject".
  #1
New Member
 
Join Date: Apr 2021
Posts: 10
Rep Power: 5
vienloer is on a distinguished road
hello everyone, would you please help me.

I need to calculate and output the "UMean" in the dsmcFoam. But the "UMean" cannot be putout like the "momentumMean". I read the IOobject code, and found that "momentumMean" is in "mesh_" and "UMean" is in "obr_". I do not know the different between "mesh_" and "obr_".

For "momentumMean" the code like:
Code:
   IOobject
        (
            this->name() + "momentum_",
            mesh_.time().timeName(),
            mesh_,
            IOobject::NO_READ,
            IOobject::NO_WRITE
        ),
        mesh_,
        dimensionedVector(dimensionSet(1, -2, -1, 0, 0), Zero)
For "UMean" the code like:
Code:
  IOobject
            (
                "UMean",
                obr_.time().timeName(),
                obr_,
                IOobject::NO_READ
            ),
            momentumMean/rhoMMean
I want to know the different between "mesh_" and "obr_". And when I use externalCoupled, the "momentumMean" can output, the "UMean" cannot, can you tell me why? Should I use "mesh_" in the "UMean" calculation?

The externalCoupled code like :
Code:
externalCoupled
{
    // Mandatory entries
    type            externalCoupled;
    libs            (fieldFunctionObjects);

    // Directory to use for communication
    commsDir        "<case>/comms";

    // Does external process start first
    initByExternal  true;

    regions
    {
        // Region name (wildcards allowed)
        ".*"
        {
            // Patch or patchGroup
            coupleGroup
            {
                // Fields to output in commsDir
                writeFields (UMean, momentumMean);

                // Fields to read from commsDir
                readFields  ();
            }
        }
    }
}
Thank you for your time~
vienloer is offline   Reply With Quote

Reply

Tags
ioobject external dsmc


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



All times are GMT -4. The time now is 04:09.