Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
d0890723
Commit
d0890723
authored
Sep 18, 2013
by
Praetorius, Simon
Browse files
corrections of NavierStokes_TH_Multiphase, NavierStokes_TaylorHodd and CahnHilliard
parent
c21c94de
Changes
3
Hide whitespace changes
Inline
Side-by-side
extensions/base_problems/CahnHilliard.cc
View file @
d0890723
...
...
@@ -124,8 +124,12 @@ void CahnHilliard::solveInitialProblem(AdaptInfo *adaptInfo)
HL_SignedDistTraverse
reinit
(
"reinit"
,
getMesh
()
->
getDim
());
reinit
.
calcSignedDistFct
(
adaptInfo
,
&
tmp
);
#ifndef HAVE_PARALLEL_DOMAIN_AMDIS
Recovery
recovery
(
L2_NORM
,
1
);
recovery
.
recoveryUh
(
&
tmp
,
*
prob
->
getSolution
()
->
getDOFVector
(
0
));
#else
prob
->
getSolution
()
->
getDOFVector
(
0
)
->
interpol
(
tmp
);
#endif
}
...
...
extensions/base_problems/NavierStokes_TH_MultiPhase.cc
View file @
d0890723
...
...
@@ -46,8 +46,14 @@ NavierStokes_TH_MultiPhase::NavierStokes_TH_MultiPhase(const std::string &name_,
NavierStokes_TH_MultiPhase
::~
NavierStokes_TH_MultiPhase
()
{
if
(
densityPhase
)
{
delete
densityPhase
;
densityPhase
=
NULL
;
}
if
(
viscosityPhase
)
{
delete
viscosityPhase
;
viscosityPhase
=
NULL
;
}
if
(
densityPhase
)
{
delete
densityPhase
;
densityPhase
=
NULL
;
}
if
(
viscosityPhase
)
{
delete
viscosityPhase
;
viscosityPhase
=
NULL
;
}
}
...
...
extensions/base_problems/NavierStokes_TaylorHood.cc
View file @
d0890723
...
...
@@ -44,8 +44,8 @@ NavierStokes_TaylorHood::NavierStokes_TaylorHood(const std::string &name_, bool
// type of non-linear term:
// 0... u^old*grad(u_i^old),
// 1... u
'
*grad(u_i^old),
// 2... u^old*grad(u
'
_i)
// 1... u*grad(u_i^old),
// 2... u^old*grad(u_i)
// 3... (1)+(2)-(0)
Initfile
::
get
(
self
::
name
+
"->non-linear term"
,
nonLinTerm
);
...
...
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