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

createPatch, cycllicAMI and SeperationVector in OpenFOAM 9

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2022, 19:06
Default createPatch, cycllicAMI and SeperationVector in OpenFOAM 9
  #1
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
Hi everyone,

I am a beginner in OpenFOAM and having a problem for prescribing a cyclicAMI boundary condition for this geometry. The mesh was an Ansys Fluent mesh with the boundaries on top and bottom (Upper1, Lower 1,...) as Wall, and then changed to cyclicAMI in OpenFOAM version 9.

Honestly, I couldn't understand how to define the SeperationVector for the cyclicAMI BC. I did the following step and got errors in paraFoam.

1. First, I used fluentMeshToFoam to convert the Fluent mesh to OpenFoam mesh. I simply used that this syntax without reordering or anything.

2. I used cyclicAMI in createPatchDict and then createPatch to implement the cyclicAMI. For example, for the UPPER1 and LOWER1, I used:

patches
(
{
// Name of new patch
name Upper1_cyc;

// Dictionary to construct new patch from
patchInfo
{
type cyclicAMI;
neighbourPatch Lower1_cyc;
matchTolerance 50;
transform translational;
separationVector (0 .3 0);
}

// How to construct: either from 'patches' or 'set'
constructFrom patches;

// If constructFrom = patches : names of patches. Wildcards allowed.
patches (UPPER);

// If constructFrom = set : name of faceSet
// set f0;
}
{
// Name of new patch
name Lower1_cyc;

// Dictionary to construct new patch from
patchInfo
{
type cyclicAMI;
neighbourPatch Upper1_cyc;
matchTolerance 50;
transform translational;
separationVector (0 -.3 0);
}

I did not know how the direction of the seperationVector must be, but tested both +0.3 and -0.3 for the y direction.


3. I changed the boundary conditions for P and U accordingly.

When I tried to open the mesh in paraFoam with the fields of P and U, the following error appeared and exit:

Source and target patch bounding boxes are not similar
source box span : (0.095 0 0.0180278)
target box span : (0.095 0 0.0180278)
source box : (-0.1 -0.15 -0.00901388) (-0.005 -0.15 0.00901388)
target box : (-0.1 0.15 -0.00901388) (-0.005 0.15 0.00901388)
inflated target box : (-0.104835 0.145165 -0.0138486) (-0.00016523 0.154835 0.0138486)


I would appreciate any input for this.

Thank you everyone for your time.
Attached Images
File Type: png CyclicAMI.png (23.6 KB, 8 views)
Mahdi_Kh is offline   Reply With Quote

Old   December 27, 2022, 19:25
Default
  #2
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
I think I got my mistake for now.
Thank you all!
Mahdi_Kh is offline   Reply With Quote

Reply

Tags
cyclicami bcs, openfoam 9, seperationvector

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:32.