(Added) |
m |
||
Line 17: | Line 17: | ||
[[Media:splitMeshWithSets.tar.gz|The tar file with the sources]] | [[Media:splitMeshWithSets.tar.gz|The tar file with the sources]] | ||
+ | |||
+ | === Compilation problems === | ||
+ | |||
+ | Some newer non-standard versions of OpenFOAM 1.2 have the problem, that the constructor for <tt>attachDetach</tt> has changed. Change the call | ||
+ | <cpp> | ||
+ | tm[0] = | ||
+ | new attachDetach | ||
+ | ( | ||
+ | "Splitter", | ||
+ | 0, | ||
+ | pMesh, | ||
+ | "membraneFaces", | ||
+ | masterPatch, | ||
+ | slavePatch, | ||
+ | scalarField(1, runTime.value()) | ||
+ | ); | ||
+ | </cpp> | ||
+ | to | ||
+ | <cpp> | ||
+ | tm[0] = | ||
+ | new attachDetach | ||
+ | ( | ||
+ | "Splitter", | ||
+ | 0, | ||
+ | pMesh.morphEngine(), | ||
+ | "membraneFaces", | ||
+ | masterPatch, | ||
+ | slavePatch, | ||
+ | scalarField(1, runTime.value()) | ||
+ | ); | ||
+ | </cpp> | ||
+ | |||
== History == | == History == |
Revision as of 13:26, 7 March 2006
1 Short description
Splitting a mesh like it is described in Importing a FLUENT mesh with internal walls has problems if it is to be done twice: because the original splitMesh renumbers the faces but the faceSets are not updated it is possible that the information in the faceSets is wrong. This utility updates the sets.
2 Usage
The same as splitMesh. After the mesh was split all faceSets are updated in the following way
- the faceSet that was used to split the mesh is erased (set to zero length)
- all other faceSets are updated so that the renumbering of the faces is taken into account
another difference to the original behaviour of the original splitMesh is that boundaries with 0 faces are not erased.
3 Download
3.1 Compilation problems
Some newer non-standard versions of OpenFOAM 1.2 have the problem, that the constructor for attachDetach has changed. Change the call
tm[0] = new attachDetach ( "Splitter", 0, pMesh, "membraneFaces", masterPatch, slavePatch, scalarField(1, runTime.value()) );
to
tm[0] = new attachDetach ( "Splitter", 0, pMesh.morphEngine(), "membraneFaces", masterPatch, slavePatch, scalarField(1, runTime.value()) );
4 History
- first Version added
--Bgschaid 18:57, 27 Feb 2006 (CET)