Difference between revisions of "Contrib/SplitMeshWithSets"

From OpenFOAMWiki
m
(Changes for 1.3)
Line 1: Line 1:
{{VersionInfo}}{{Version1.2}}
+
{{VersionInfo}}{{Version1.2}}{{Version1.3}}
  
 
== Short description ==
 
== Short description ==
Line 16: Line 16:
 
== Download ==
 
== Download ==
  
[[Media:splitMeshWithSets.tar.gz|The tar file with the sources]]
+
For OpenFOAM 1.2: [[Media:splitMeshWithSets.tar.gz|The tar file with the sources]]
 +
 
 +
For OpenFOAM 1.3: [[Media:splitMeshWithSets1.3.tar.gz|The tar file with the sources]]
 +
 
 +
=== OpenFOAM 1.3 ===
 +
 
 +
There is a special version that compiles on Version 1.3. Please note when using [[Howto_importing_fluent_mesh_with_internal_walls|this recipie]] that in OpenFOAM 1.3 empty patches without a starting face are treated differently: now the starting face '''must''' be one face after the last face. If it is left empty OpenFOAM assumes that it is zero.
 +
 
  
 
=== Compilation problems ===
 
=== 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
+
Some newer non-standard versions of {{Version1.2}} have the problem, that the constructor for <tt>attachDetach</tt> has changed. Change the call
 
<cpp>
 
<cpp>
 
     tm[0] =
 
     tm[0] =
Line 53: Line 60:
  
 
* first Version added
 
* first Version added
 +
* 2006-04-03: Version for OpenFOAM 1.3 added
  
 
--[[User:Bgschaid|Bgschaid]] 18:57, 27 Feb 2006 (CET)
 
--[[User:Bgschaid|Bgschaid]] 18:57, 27 Feb 2006 (CET)

Revision as of 11:22, 3 April 2006

Valid versions: OF version 12.png OF version 13.png

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

For OpenFOAM 1.2: The tar file with the sources

For OpenFOAM 1.3: The tar file with the sources

3.1 OpenFOAM 1.3

There is a special version that compiles on Version 1.3. Please note when using this recipie that in OpenFOAM 1.3 empty patches without a starting face are treated differently: now the starting face must be one face after the last face. If it is left empty OpenFOAM assumes that it is zero.


3.2 Compilation problems

Some newer non-standard versions of OF version 12.png 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
  • 2006-04-03: Version for OpenFOAM 1.3 added

--Bgschaid 18:57, 27 Feb 2006 (CET)