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
edf13df3
Commit
edf13df3
authored
Dec 28, 2016
by
Michael Turner
Browse files
analytics
parent
4ed95115
Changes
3
Hide whitespace changes
Inline
Side-by-side
utilities/NekMesh/ProcessModules/ProcessVarOpti/Evaluator.hxx
View file @
edf13df3
...
...
@@ -856,6 +856,7 @@ NekDouble NodeOpti::GetFunctional(NekDouble &minJacNew, bool gradient)
//ASSERTL0(std::isfinite(integral),"inf in integral");
return
integral
;
//return sqrt(m_grad[0]*m_grad[0] + m_grad[1]*m_grad[1]);
}
}
...
...
utilities/NekMesh/ProcessModules/ProcessVarOpti/NodeOpti.h
View file @
edf13df3
...
...
@@ -74,6 +74,9 @@ public:
template
<
int
DIM
>
NekDouble
GetFunctional
(
NekDouble
&
minJacNew
,
bool
gradient
=
true
);
template
<
int
DIM
>
void
MinEigen
(
NekDouble
&
val
);
protected:
NodeSharedPtr
m_node
;
...
...
@@ -82,7 +85,7 @@ protected:
Array
<
OneD
,
NekDouble
>
m_grad
;
template
<
int
DIM
>
int
IsIndefinite
();
template
<
int
DIM
>
void
MinEigen
(
NekDouble
&
val
);
NekDouble
m_minJac
;
ResidualSharedPtr
m_res
;
...
...
utilities/NekMesh/ProcessModules/ProcessVarOpti/ProcessVarOpti.cpp
View file @
edf13df3
...
...
@@ -435,7 +435,7 @@ void ProcessVarOpti::Analytics()
NodeSharedPtr
node
=
nodes
[
4
];
// Loop over overintegration orders
const
int
nPoints
=
5
0
;
const
int
nPoints
=
20
0
;
const
int
overInt
=
40
;
const
NekDouble
originX
=
-
1.0
;
const
NekDouble
originY
=
-
1.0
;
...
...
@@ -470,6 +470,12 @@ void ProcessVarOpti::Analytics()
// Reconstruct element map
GetElementMap
(
i
,
derivUtils
);
for
(
int
j
=
0
;
j
<
m_dataSet
.
size
();
j
++
)
{
m_dataSet
[
j
]
->
Evaluate
();
m_dataSet
[
j
]
->
InitialMinJac
();
}
// Create NodeOpti object.
NodeOptiSharedPtr
nodeOpti
=
GetNodeOptiFactory
().
CreateInstance
(
m_mesh
->
m_spaceDim
*
11
,
node
,
m_nodeElMap
.
find
(
node
->
m_id
)
->
second
,
...
...
@@ -479,7 +485,11 @@ void ProcessVarOpti::Analytics()
// Evaluate functional.
nodeOpti
->
CalcMinJac
();
cout
<<
nodeOpti
->
GetFunctional
<
2
>
(
minJacNew
,
false
)
<<
" "
;
cout
<<
nodeOpti
->
GetFunctional
<
2
>
(
minJacNew
)
<<
" "
;
//NekDouble eigen;
//nodeOpti->GetFunctional<2>(minJacNew);
//nodeOpti->MinEigen<2>(eigen);
//cout << eigen << " ";
}
cout
<<
minJacNew
<<
endl
;
...
...
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