Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
1c3c1e01
Commit
1c3c1e01
authored
14 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: fluent3dMeshToFoam : added initial part for reading of periodic faces
parent
2c51cc50
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/utilities/mesh/conversion/fluent3DMeshToFoam/fluent3DMeshToFoam.L
+61
-9
61 additions, 9 deletions
...s/mesh/conversion/fluent3DMeshToFoam/fluent3DMeshToFoam.L
with
61 additions
and
9 deletions
applications/utilities/mesh/conversion/fluent3DMeshToFoam/fluent3DMeshToFoam.L
+
61
−
9
View file @
1c3c1e01
...
@@ -36,6 +36,7 @@ Description
...
@@ -36,6 +36,7 @@ Description
------ local definitions
------ local definitions
\* ------------------------------------------------------------------------ */
\* ------------------------------------------------------------------------ */
#include "cyclicPolyPatch.H"
#include "argList.H"
#include "argList.H"
#include "Time.H"
#include "Time.H"
#include "polyMesh.H"
#include "polyMesh.H"
...
@@ -904,6 +905,13 @@ int main(int argc, char *argv[])
...
@@ -904,6 +905,13 @@ int main(int argc, char *argv[])
fluentToFoamType.insert("radiator", polyPatch::typeName);
fluentToFoamType.insert("radiator", polyPatch::typeName);
fluentToFoamType.insert("porous-jump", polyPatch::typeName);
fluentToFoamType.insert("porous-jump", polyPatch::typeName);
//- Periodic halves map directly into split cyclics. The problem is the
// initial matching since we require knowledge of the transformation.
// It is ok if the periodics are already ordered. We should read the
// periodic shadow faces section (section 18) to give use the ordering
// For now just disable.
//fluentToFoamType.insert("periodic", cyclicPolyPatch::typeName);
// Foam patch type for Fluent zone type
// Foam patch type for Fluent zone type
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
@@ -1039,15 +1047,59 @@ int main(int argc, char *argv[])
...
@@ -1039,15 +1047,59 @@ int main(int argc, char *argv[])
if (iter != fluentToFoamType.end())
if (iter != fluentToFoamType.end())
{
{
newPatches[patchi] = polyPatch::New
// See if we have a periodic and can derive the other side.
(
word neighbPatchName;
iter(),
if (iter() == cyclicPolyPatch::typeName)
name,
{
0,
// Periodic
0,
size_t n = name.rfind("-SIDE-1");
patchi,
mesh.boundaryMesh()
if (n != string::npos)
).ptr();
{
neighbPatchName = name.substr(0, n) + "-SIDE-2";
}
else
{
n = name.rfind("-SIDE-2");
if (n != string::npos)
{
neighbPatchName = name.substr(0, n) + "-SIDE-1";
}
}
}
if (neighbPatchName.size())
{
Info<< "Adding cyclicPolyPatch for Fluent zone " << name
<< " with neighbour patch " << neighbPatchName
<< endl;
newPatches[patchi] = new cyclicPolyPatch
(
name,
0,
0,
patchi,
mesh.boundaryMesh(),
neighbPatchName,
cyclicPolyPatch::NOORDERING,
vector::zero,
vector::zero,
vector::zero
);
}
else
{
newPatches[patchi] = polyPatch::New
(
iter(),
name,
0,
0,
patchi,
mesh.boundaryMesh()
).ptr();
}
}
}
else
else
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment