Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
Nektar
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
62
Issues
62
List
Boards
Labels
Milestones
Merge Requests
28
Merge Requests
28
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nektar
Nektar
Commits
798924b4
Commit
798924b4
authored
Mar 01, 2018
by
Dave Moxey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue with missing FwdTrans if flowrate correction enabled
parent
a3466629
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
27 deletions
+33
-27
solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.cpp
...StokesSolver/EquationSystems/VelocityCorrectionScheme.cpp
+31
-26
solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.h
...erStokesSolver/EquationSystems/VelocityCorrectionScheme.h
+2
-1
No files found.
solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.cpp
View file @
798924b4
...
...
@@ -99,32 +99,13 @@ namespace Nektar
}
}
// creation of the extrapolation object
if
(
m_equationType
==
eUnsteadyNavierStokes
)
{
std
::
string
vExtrapolation
=
v_GetExtrapolateStr
();
if
(
m_session
->
DefinesSolverInfo
(
"Extrapolation"
))
{
vExtrapolation
=
v_GetSubSteppingExtrapolateStr
(
m_session
->
GetSolverInfo
(
"Extrapolation"
));
}
m_extrapolation
=
GetExtrapolateFactory
().
CreateInstance
(
vExtrapolation
,
m_session
,
m_fields
,
m_pressure
,
m_velocity
,
m_advObject
);
}
// Integrate only the convective fields
for
(
n
=
0
;
n
<
m_nConvectiveFields
;
++
n
)
{
m_intVariables
.
push_back
(
n
);
}
SetUpExtrapolation
();
SetUpSVV
();
m_session
->
MatchSolverInfo
(
"SmoothAdvection"
,
"True"
,
...
...
@@ -134,10 +115,6 @@ namespace Nektar
m_ode
.
DefineOdeRhs
(
&
VelocityCorrectionScheme
::
EvaluateAdvection_SetPressureBCs
,
this
);
m_extrapolation
->
SubSteppingTimeIntegration
(
m_intScheme
->
GetIntegrationMethod
(),
m_intScheme
);
m_extrapolation
->
GenerateHOPBCMap
(
m_session
);
// set implicit time-intregration class operators
m_ode
.
DefineImplicitSolve
(
&
VelocityCorrectionScheme
::
SolveUnsteadyStokesSystem
,
this
);
...
...
@@ -147,6 +124,31 @@ namespace Nektar
m_session
->
LoadParameter
(
"IO_FlowSteps"
,
m_flowrateSteps
,
0
);
}
void
VelocityCorrectionScheme
::
SetUpExtrapolation
()
{
// creation of the extrapolation object
if
(
m_equationType
==
eUnsteadyNavierStokes
)
{
std
::
string
vExtrapolation
=
v_GetExtrapolateStr
();
if
(
m_session
->
DefinesSolverInfo
(
"Extrapolation"
))
{
vExtrapolation
=
v_GetSubSteppingExtrapolateStr
(
m_session
->
GetSolverInfo
(
"Extrapolation"
));
}
m_extrapolation
=
GetExtrapolateFactory
().
CreateInstance
(
vExtrapolation
,
m_session
,
m_fields
,
m_pressure
,
m_velocity
,
m_advObject
);
m_extrapolation
->
SubSteppingTimeIntegration
(
m_intScheme
->
GetIntegrationMethod
(),
m_intScheme
);
m_extrapolation
->
GenerateHOPBCMap
(
m_session
);
}
}
/**
* @brief Set up the Stokes solution used to impose constant flowrate
* through a boundary.
...
...
@@ -287,6 +289,9 @@ namespace Nektar
SolveUnsteadyStokesSystem
(
inTmp
,
m_flowrateStokes
,
0.0
,
m_timestep
);
m_greenFlux
=
MeasureFlowrate
(
m_flowrateStokes
);
// Reset extrapolation.
SetUpExtrapolation
();
// Open field
if
(
m_comm
->
GetRank
()
==
0
&&
m_flowrateSteps
)
{
...
...
@@ -666,7 +671,7 @@ namespace Nektar
{
Vmath
::
Zero
(
phystot
,
Forcing
[
i
],
1
);
}
// Subtract inarray/(aii_dt) and divide by kinvis. Kinvis will
// need to be updated for the convected fields.
for
(
int
i
=
0
;
i
<
m_nConvectiveFields
;
++
i
)
...
...
solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.h
View file @
798924b4
...
...
@@ -195,7 +195,7 @@ namespace Nektar
virtual
bool
v_RequireFwdTrans
()
{
return
false
;
return
false
||
m_flowrate
>
0.0
;
}
virtual
std
::
string
v_GetExtrapolateStr
(
void
)
...
...
@@ -212,6 +212,7 @@ namespace Nektar
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
m_F
;
void
SetUpSVV
(
void
);
void
SetUpExtrapolation
(
void
);
void
SVVVarDiffCoeff
(
const
NekDouble
velmag
,
Array
<
OneD
,
NekDouble
>
&
diffcoeff
,
...
...
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