Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nektar
Nektar
Commits
77f0dbab
Commit
77f0dbab
authored
Dec 20, 2016
by
Browse files
add a basic test to varopti
parent
d46051b5
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
utilities/NekMesh/CMakeLists.txt
View file @
77f0dbab
...
...
@@ -143,9 +143,11 @@ ADD_NEKTAR_TEST (Nek5000/r1854a)
ADD_NEKTAR_TEST
(
StarTec/CubePer
)
ADD_NEKTAR_TEST_LENGTHY
(
StarTec/StraightRW
)
# varopti tests
ADD_NEKTAR_TEST
(
MeshGen/varopti_cubesphere
)
# MeshGen test
IF
(
NEKTAR_USE_MESHGEN
)
ADD_NEKTAR_TEST
(
MeshGen/cylinder
)
ADD_NEKTAR_TEST
(
MeshGen/sphere
)
# ADD_NEKTAR_TEST_LENGTHY(MeshGen/predator) disabled for now
ENDIF
()
utilities/NekMesh/ProcessModules/ProcessVarOpti/ProcessVarOpti.cpp
View file @
77f0dbab
...
...
@@ -374,8 +374,8 @@ void ProcessVarOpti::Process()
t
.
Stop
();
cout
<<
"Time to compute: "
<<
t
.
TimePerTest
(
1
)
<<
endl
;
cout
<<
"Invalid at end:
\t\t
"
<<
m_res
->
startInv
<<
endl
;
cout
<<
"Worst at end:
\t\t
"
<<
m_res
->
worstJac
<<
endl
;
cout
<<
"Invalid at end:
"
<<
m_res
->
startInv
<<
endl
;
cout
<<
"Worst at end:
"
<<
m_res
->
worstJac
<<
endl
;
}
class
NodalUtilTriMonomial
:
public
LibUtilities
::
NodalUtilTriangle
...
...
utilities/NekMesh/Tests/MeshGen/cube-sphere.msh
0 → 100644
View file @
77f0dbab
This source diff could not be displayed because it is too large. You can
view the blob
instead.
utilities/NekMesh/Tests/MeshGen/predator.STEP
deleted
100644 → 0
View file @
d46051b5
This diff is collapsed.
Click to expand it.
utilities/NekMesh/Tests/MeshGen/predator.mcf
deleted
100644 → 0
View file @
d46051b5
<NEKTAR>
<CONDITIONS>
<SOLVERINFO>
<I PROPERTY="CADFile" VALUE="predator.STEP" />
<I PROPERTY="MeshType" VALUE="Euler" />
</SOLVERINFO>
<PARAMETERS>
<P> MinDelta = 0.05 </P>
<P> MaxDelta = 1.0 </P>
<P> EPS = 0.5 </P>
<P> Order = 4 </P>
</PARAMETERS>
</CONDITIONS>
</NEKTAR>
utilities/NekMesh/Tests/MeshGen/predator.tst
deleted
100644 → 0
View file @
d46051b5
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>
Complex geometry of predator drone, no bl
</description>
<executable>
NekMesh
</executable>
<parameters>
-m jac:list predator.mcf predator.xml:xml:test
</parameters>
<files>
<file
description=
"Input File"
>
predator.mcf
</file>
<file
description=
"Input File 2"
>
predator.STEP
</file>
</files>
<metrics>
<metric
type=
"regex"
id=
"1"
>
<regex>
^Total negative Jacobians: (\d+)
</regex>
<matches>
<match>
<field
id=
"0"
>
0
</field>
</match>
</matches>
</metric>
</metrics>
</test>
utilities/NekMesh/Tests/MeshGen/rev-rotated.STEP
deleted
100644 → 0
View file @
d46051b5
This diff is collapsed.
Click to expand it.
utilities/NekMesh/Tests/MeshGen/rev.mcf
deleted
100644 → 0
View file @
d46051b5
<NEKTAR>
<CONDITIONS>
<SOLVERINFO>
<I PROPERTY="CADFile" VALUE="rev-rotated.STEP" />
<I PROPERTY="MeshType" VALUE="BL" />
<I PROPERTY="BLSurfs" VALUE="7,8,9" />
</SOLVERINFO>
<PARAMETERS>
<P> MinDelta = 0.005 </P>
<P> MaxDelta = 0.2 </P>
<P> EPS = 0.075 </P>
<P> Order = 4 </P>
<P> BLThick = 0.02 </P>
</PARAMETERS>
</CONDITIONS>
</NEKTAR>
utilities/NekMesh/Tests/MeshGen/re
v
.tst
→
utilities/NekMesh/Tests/MeshGen/
varopti_cubesphe
re.tst
View file @
77f0dbab
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>
High AoA naca0012 wing with bl
</description>
<description>
Variational optimiser test on all tet cube/sphere
</description>
<executable>
NekMesh
</executable>
<parameters>
-m jac:list
re
v
.m
cf rev
.xml:xml:test
</parameters>
<parameters>
cube-sphe
re.m
sh test
.xml:xml:test
-m varopti:hyperelastic:maxiter=5
</parameters>
<files>
<file
description=
"Input File"
>
rev.mcf
</file>
<file
description=
"Input File 2"
>
rev-rotated.STEP
</file>
<file
description=
"Input File"
>
cube-sphere.msh
</file>
</files>
<metrics>
<metric
type=
"regex"
id=
"
1
"
>
<regex>
^Total negative Jacobians
: (\d+)
</regex>
<metric
type=
"regex"
id=
"
0
"
>
<regex>
Worst at end
: (
-?
\d+
(?:\.\d*)?(?:[eE][+\-]?\d+)?
)
</regex>
<matches>
<match>
<field
id=
"0"
>
0
</field>
<field
id=
"0"
>
7.564169e-01
</field>
</match>
</matches>
</metric>
...
...
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