March 16, 2020, 06:24
|
How to create cyclic non-matching patches?
|
#1
|
New Member
Tobias Kienzler
Join Date: Mar 2020
Posts: 13
Rep Power: 6
|
Hello,
I'd like to mesh part of periodic tube with cyclic patches, i.e. while the internal structure is irregular and provided by an OBJ file, the cyclic patches are identical but rotated. Just using a naive run on snappyHexMesh and createPatches
Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createPatchDict;
}
pointSync false;
// Patches to create.
patches
(
{
name cyclAMI.Front;
patchInfo
{
type cyclicAMI;
neighbourPatch cyclAMI.Back;
// Optional: explicitly set transformation tensor.
// Used when matching and synchronising points.
transform rotational;
rotationAxis (0 0 1);
rotationCentre (0 0 0);
}
constructFrom patches;
patches (Front);
}
{
name cyclAMI.Back;
patchInfo
{
type cyclicAMI;
neighbourPatch cyclAMI.Front;
transform rotational;
rotationAxis ( 0 0 1 );
rotationCentre ( 0 0 0 );
}
constructFrom patches;
patches (Back);
}
);
I cannot use cyclic but must use cyclicAMI due to the mismatch of the Front and Back patch meshing. But then I obtain zero weights in the AMIs, and due to the actually (but rotated) identical faces I'd prefer to use a real cyclic non-AMI boundary condition anyway. Is there any way to achieve this? I guess I'd need to instruct snappyHexMesh somehow to create the patches identically if that is somehow possible.
Cheers
|
|
|