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

decomposePar doesn't decompose boundaryFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2020, 04:52
Default decomposePar doesn't decompose boundaryFields
  #1
Member
 
ishan
Join Date: Oct 2017
Posts: 78
Rep Power: 9
ishan_ae is on a distinguished road
Hello.


When I run decomposePar on my simpleFoam case it decomposes only the internalField data and not the boundaryField data.

I want to run a simpleFoam case with U internalFields values generated from potentialFoam.

The geometry/mesh/patch names I am using is same for both the solvers.

But I had to simplify the BC for potentialFoam run.

Accordingly, I mapped the U field from potentialFoam runto U/0 in simpleFoam folder.

I want to use this mapped field as values to internalFields to simpleFoam run.

Since I am dealing with large mesh, I copied that data into a separate foamFile callled initialU and its format looks like this:
Code:
initialU //name of the field
List<vector>
9528301
(
(x1 y1 z1)
(x2 y2 z2)
....
);
This way I can easily update the BC in U/0 without loading that data every time.

By the way, this foamFile is located in 0 folder.

The U/0 folder looks like this:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


 #include "initialU"

dimensions [0 1 -1 0 0 0 0];

internalField nonuniform $initialU;


boundaryField
{
    //my boundary conditions

}
After I run decomposePar on this setup, only the internalField values are decomposed and not the boundaryField data.


The decomposed U file from processor0 looks like this:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   nonuniform List<vector> 
531740
(

(1.92541 -0.998319 0.87524)
(1.81862 -1.05479 0.762567)
(1.78588 -1.01315 0.756257)
...
)
;
    }
}
The last two curly brackets are suspicious to me. Not sure what they are closing.



In the original mapped file, i.e. before I did all these shenanigans, the U/0 looked like this:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   nonuniform List<vector> 

9528301
(
(137.464 -2.17855 -0.202383)
(137.466 -2.17814 -0.20957)
(140.515 -2.36609 -0.160376)
..............
);


boundaryField
{
    //my boundary conditions 

}
Am i complicating things here ? Can someone please suggest what's going wrong ?
ishan_ae 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
decomposePar no field transfert Jeanp OpenFOAM Pre-Processing 3 June 18, 2022 13:01
Problem with decomposePar (and mapFields) for large problem quarkz OpenFOAM Pre-Processing 2 February 21, 2019 10:51
multiRegion decomposePar should not decompose each region over all processors svenk OpenFOAM Pre-Processing 1 April 11, 2018 06:44
decomposePar 4-core warning/error? Boloar OpenFOAM Bugs 23 April 8, 2014 09:57
decomposePar gives errors of_user_ OpenFOAM 1 July 4, 2011 06:27


All times are GMT -4. The time now is 21:23.