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

[mesh manipulation] createPatch seg-faults when trying on rotationally periodic faces (v2.0.x)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2012, 19:32
Default createPatch seg-faults when trying on rotationally periodic faces (v2.0.x)
  #1
Member
 
Vishal Achasrya
Join Date: Nov 2011
Posts: 38
Rep Power: 14
vishalsacharya is on a distinguished road
Im having a problem with my createPatch...

So my boundary file has two faces that are rotationally periodic.. as in if rotate one about the z-axis, you get to the other, since it is a cylindrical geometry...
the patches from the boundary file are...

new_periodic_inlet_1_shadow
{
type patch;
nFaces 1392;
startFace 2565657;
}
periodic_inlet_1
{
type patch;
nFaces 1392;
startFace 2567049;
}

if you notice, the startFaces are different and the number of faces are the same for both... since i ensured that both faces have the same mesh... now, the following is from my createPatchDict file....

pointSync false;

patches
(
{
name periodic_inlet;

patchInfo
{
type cyclic;
neighbourPatch periodic_inlet_shadow;
transform rotational;
rotationAxis (0 0 1);
rotationCentre (0 0 0);
}
constructFrom patches;
patches (periodic_inlet_1 new_periodic_inlet_1_shadow);

}
{
name periodic_inlet_shadow;

patchInfo
{
type cyclic;
neighbourPatch periodic_inlet;

transform rotational;
rotationAxis (0 0 1);
rotationCentre (0 0 0);
}
constructFrom patches;
patches (periodic_inlet_1 new_periodic_inlet_1_shadow);
}
);

Now, notice that i set pointSync to false since both my faces have the same mesh....
Also, since im using version 2.0.x, i have to create both patches (the main and the cylic one) separately as two new patches... and use the original patches from my boundary file for constructing them... so i use the neighbourPatch keyword for this...
Also since i have rotational periodicity, i use the transform keyword and mention origin and axis...
Now when i run this, i get the following...
Any ideas or thoughts would be appreciated?


Create time

Reading createPatchDict.

Create polyMesh for time = 0

Adding new patch periodic_inlet as patch 18 from
{
type cyclic;
neighbourPatch periodic_inlet_shadow;
transform rotational;
rotationAxis ( 0 0 1 );
rotationCentre ( 0 0 0 );
}

Adding new patch periodic_inlet_shadow as patch 19 from
{
type cyclic;
neighbourPatch periodic_inlet;
transform rotational;
rotationAxis ( 0 0 1 );
rotationCentre ( 0 0 0 );
}


Moving faces from patch new_periodic_inlet_1_shadow to patch 18
Moving faces from patch periodic_inlet_1 to patch 18
Moving faces from patch new_periodic_inlet_1_shadow to patch 19
Moving faces from patch periodic_inlet_1 to patch 19

Doing topology modification to order faces.

#0 Foam::error:rintStack(Foam::Ostream&) in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/libc.so.6"
#3 Foam::cyclicPolyPatch::getCentresAndAnchors(Foam:: PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::Field<Foam::Vector<double> >&, Foam::Field<Foam::Vector<double> >&, Foam::Field<Foam::Vector<double> >&, Foam::Field<double>&) const in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 Foam::cyclicPolyPatch:rder(Foam::PstreamBuffers&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::List<int>&, Foam::List<int>&) const in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5 Foam:olyTopoChange::reorderCoupledFaces(bool, Foam:olyBoundaryMesh const&, Foam::List<int> const&, Foam::List<int> const&, Foam::Field<Foam::Vector<double> > const&) in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdynamicMesh.so"
#6 Foam:olyTopoChange::compactAndReorder(Foam:oly Mesh const&, bool, bool, bool, int&, Foam::Field<Foam::Vector<double> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<Foam:bjectMap>&, Foam::List<Foam:bjectMap>&, Foam::List<Foam:bjectMap>&, Foam::List<Foam:bjectMap>&, Foam::List<Foam:bjectMap>&, Foam::List<Foam:bjectMap>&, Foam::List<Foam:bjectMap>&, Foam::List<Foam:bjectMap>&, Foam::List<Foam::Map<int> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<Foam::Map<int> >&) in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdynamicMesh.so"
#7 FoamlyTopoChange::changeMesh(FoamlyMesh&, bool, bool, bool, bool) in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdynamicMesh.so"
#8
in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/createPatch"
#9 __libc_start_main in "/lib/libc.so.6"
#10
in "/home/vishalsa/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/createPatch"
Segmentation fault
vishalsacharya is offline   Reply With Quote

Reply

Tags
createpatch, cyclic boundaries, openfoam 2.0.x

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 09:23
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) AndreP STAR-CCM+ 10 August 2, 2018 07:48
[snappyHexMesh] SHM is not extruding/adding Layers everywhere matthiasd OpenFOAM Meshing & Mesh Conversion 2 October 16, 2016 16:45
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 08:14
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03


All times are GMT -4. The time now is 00:40.