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
f46dd07a
Commit
f46dd07a
authored
2 years ago
by
Giacomo Castiglioni
Browse files
Options
Downloads
Patches
Plain Diff
fixing av for ip
parent
1a56c6e0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
solvers/CompressibleFlowSolver/EquationSystems/NavierStokesCFE.h
+14
-4
14 additions, 4 deletions
.../CompressibleFlowSolver/EquationSystems/NavierStokesCFE.h
with
14 additions
and
4 deletions
solvers/CompressibleFlowSolver/EquationSystems/NavierStokesCFE.h
+
14
−
4
View file @
f46dd07a
...
...
@@ -388,6 +388,14 @@ namespace Nektar
constexpr
unsigned
short
nVarMax
=
5
;
constexpr
unsigned
short
nDimMax
=
3
;
// Update viscosity and thermal conductivity
// unfortunately this is very difficult to vectorize
// with the current implementation
Array
<
OneD
,
NekDouble
>
temperature
(
nPts
,
0.0
);
m_varConv
->
GetTemperature
(
inarray
,
temperature
);
GetViscosityAndThermalCondFromTemp
(
temperature
,
m_mu
,
m_thermalConductivity
);
// vector loop
using
namespace
tinysimd
;
using
vec_t
=
simd
<
NekDouble
>
;
...
...
@@ -429,10 +437,11 @@ namespace Nektar
}
// get temp
vec_t
temperature
=
m_varConv
->
GetTemperature
(
inTmp
.
data
());
//
vec_t temperature = m_varConv->GetTemperature(inTmp.data());
// get viscosity
vec_t
mu
;
GetViscosityFromTempKernel
(
temperature
,
mu
);
// GetViscosityFromTempKernel(temperature, mu);
mu
.
load
(
&
(
m_mu
[
p
]),
is_not_aligned
);
for
(
size_t
nderiv
=
0
;
nderiv
<
nDim
;
++
nderiv
)
{
...
...
@@ -519,10 +528,11 @@ namespace Nektar
}
// get temp
NekDouble
temperature
=
m_varConv
->
GetTemperature
(
inTmp
.
data
());
//
NekDouble temperature = m_varConv->GetTemperature(inTmp.data());
// get viscosity
NekDouble
mu
;
GetViscosityFromTempKernel
(
temperature
,
mu
);
// GetViscosityFromTempKernel(temperature, mu);
mu
=
m_mu
[
p
];
for
(
int
nderiv
=
0
;
nderiv
<
nDim
;
++
nderiv
)
{
...
...
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