Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Nektar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Castiglioni
Nektar
Commits
9550af52
Commit
9550af52
authored
8 years ago
by
Douglas Serson
Committed by
Chris Cantwell
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add missing const
(cherry picked from commit
aa9bcb1d
)
parent
8ede9193
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
solvers/IncNavierStokesSolver/EquationSystems/VCSMapping.cpp
+6
-6
6 additions, 6 deletions
solvers/IncNavierStokesSolver/EquationSystems/VCSMapping.cpp
solvers/IncNavierStokesSolver/EquationSystems/VCSMapping.h
+5
-5
5 additions, 5 deletions
solvers/IncNavierStokesSolver/EquationSystems/VCSMapping.h
with
11 additions
and
11 deletions
solvers/IncNavierStokesSolver/EquationSystems/VCSMapping.cpp
+
6
−
6
View file @
9550af52
...
...
@@ -739,8 +739,8 @@ namespace Nektar
* Explicit terms of the mapping
*/
void
VCSMapping
::
ApplyIncNSMappingForcing
(
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
inarray
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
)
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
inarray
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
)
{
int
physTot
=
m_fields
[
0
]
->
GetTotPoints
();
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
vel
(
m_nConvectiveFields
);
...
...
@@ -822,7 +822,7 @@ namespace Nektar
}
void
VCSMapping
::
MappingAdvectionCorrection
(
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
)
{
int
physTot
=
m_fields
[
0
]
->
GetTotPoints
();
...
...
@@ -847,8 +847,8 @@ namespace Nektar
}
void
VCSMapping
::
MappingAccelerationCorrection
(
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
vel
,
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
vel
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
)
{
int
physTot
=
m_fields
[
0
]
->
GetTotPoints
();
...
...
@@ -953,7 +953,7 @@ namespace Nektar
}
void
VCSMapping
::
MappingViscousCorrection
(
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
)
{
// L(U) - 1.0*d^2(u^i)/dx^jdx^j
...
...
This diff is collapsed.
Click to expand it.
solvers/IncNavierStokesSolver/EquationSystems/VCSMapping.h
+
5
−
5
View file @
9550af52
...
...
@@ -64,7 +64,7 @@ namespace Nektar
//
void
ApplyIncNSMappingForcing
(
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
inarray
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
inarray
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
);
virtual
~
VCSMapping
();
...
...
@@ -124,7 +124,7 @@ namespace Nektar
// Correction needed for convective terms = N(u) - ( -(u \nabla) u)
// velPhys is the velocity field (transformed for physical space)
void
MappingAdvectionCorrection
(
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
);
// Correction needed for time-derivative terms
...
...
@@ -132,8 +132,8 @@ namespace Nektar
// vel is the velocity field (can be in wavespace)
// velPhys is the velocity field (transformed for physical space)
void
MappingAccelerationCorrection
(
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
vel
,
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
vel
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
);
// Correction needed for pressure terms
...
...
@@ -147,7 +147,7 @@ namespace Nektar
// vel is the velocity field (can be in wavespace)
// velPhys is the velocity field (transformed for physical space)
void
MappingViscousCorrection
(
const
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
const
Array
<
OneD
,
const
Array
<
OneD
,
NekDouble
>
>
&
velPhys
,
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
&
outarray
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment