Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Bing Yuan
Nektar
Commits
f9062237
Commit
f9062237
authored
Mar 22, 2017
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manifold mesh option
parent
e23f455a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
29 deletions
+38
-29
utilities/NekMesh/InputModules/InputMCF.cpp
utilities/NekMesh/InputModules/InputMCF.cpp
+37
-28
utilities/NekMesh/InputModules/InputMCF.h
utilities/NekMesh/InputModules/InputMCF.h
+1
-1
No files found.
utilities/NekMesh/InputModules/InputMCF.cpp
View file @
f9062237
...
...
@@ -180,12 +180,13 @@ void InputMCF::ParseFile(string nm)
ASSERTL0
(
it
!=
information
.
end
(),
"no meshtype defined"
);
m_makeBL
=
it
->
second
==
"3DBndLayer"
;
m_2D
=
it
->
second
==
"2D"
;
m_manifold
=
it
->
second
==
"Manifold"
;
if
(
it
->
second
==
"2DBndLayer"
)
{
m_makeBL
=
true
;
m_2D
=
true
;
}
if
(
!
m_makeBL
&&
!
m_2D
)
if
(
!
m_makeBL
&&
!
m_2D
&&
!
m_manifold
)
{
ASSERTL0
(
it
->
second
==
"3D"
,
"unsure on MeshType"
)
}
...
...
@@ -397,36 +398,44 @@ void InputMCF::Process()
return
;
}
////**** VolumeMesh ****////
module
=
GetModuleFactory
().
CreateInstance
(
ModuleKey
(
eProcessModule
,
"volumemesh"
),
m_mesh
);
if
(
m_makeBL
)
if
(
m_manifold
)
{
module
->
RegisterConfig
(
"blsurfs"
,
m_blsurfs
);
module
->
RegisterConfig
(
"blthick"
,
m_blthick
);
module
->
RegisterConfig
(
"bllayers"
,
m_bllayers
);
module
->
RegisterConfig
(
"blprog"
,
m_blprog
);
}
try
{
module
->
SetDefaults
();
module
->
Process
();
//dont want to volume mesh
m_mesh
->
m_expDim
=
2
;
}
catch
(
runtime_error
&
e
)
else
{
cout
<<
"Volume meshing has failed with message:"
<<
endl
;
cout
<<
e
.
what
()
<<
endl
;
cout
<<
"The linear surface mesh be dumped as a manifold mesh"
<<
endl
;
m_mesh
->
m_expDim
=
2
;
m_mesh
->
m_element
[
3
].
clear
();
ProcessVertices
();
ProcessEdges
();
ProcessFaces
();
ProcessElements
();
ProcessComposites
();
return
;
////**** VolumeMesh ****////
module
=
GetModuleFactory
().
CreateInstance
(
ModuleKey
(
eProcessModule
,
"volumemesh"
),
m_mesh
);
if
(
m_makeBL
)
{
module
->
RegisterConfig
(
"blsurfs"
,
m_blsurfs
);
module
->
RegisterConfig
(
"blthick"
,
m_blthick
);
module
->
RegisterConfig
(
"bllayers"
,
m_bllayers
);
module
->
RegisterConfig
(
"blprog"
,
m_blprog
);
}
try
{
module
->
SetDefaults
();
module
->
Process
();
}
catch
(
runtime_error
&
e
)
{
cout
<<
"Volume meshing has failed with message:"
<<
endl
;
cout
<<
e
.
what
()
<<
endl
;
cout
<<
"The linear surface mesh be dumped as a manifold mesh"
<<
endl
;
m_mesh
->
m_expDim
=
2
;
m_mesh
->
m_element
[
3
].
clear
();
ProcessVertices
();
ProcessEdges
();
ProcessFaces
();
ProcessElements
();
ProcessComposites
();
return
;
}
}
}
...
...
utilities/NekMesh/InputModules/InputMCF.h
View file @
f9062237
...
...
@@ -66,7 +66,7 @@ private:
m_nacadomain
,
m_periodic
,
m_adjustment
;
bool
m_makeBL
,
m_surfopti
,
m_varopti
,
m_refine
,
m_woct
,
m_2D
,
m_splitBL
,
m_naca
,
m_adjust
,
m_adjustall
;
m_naca
,
m_adjust
,
m_adjustall
,
m_manifold
;
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment