-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of Menter's 1-eq gamma transition model (#1287)
--------- Co-authored-by: Kevin Griffin <[email protected]> Co-authored-by: Marc Henry de Frahan <[email protected]>
- Loading branch information
1 parent
e3751ee
commit 6155b17
Showing
27 changed files
with
1,679 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC | ||
// (NTESS), National Renewable Energy Laboratory, University of Texas Austin, | ||
// Northwest Research Associates. Under the terms of Contract DE-NA0003525 | ||
// with NTESS, the U.S. Government retains certain rights in this software. | ||
// | ||
// This software is released under the BSD 3-clause license. See LICENSE file | ||
// for more details. | ||
// | ||
|
||
#ifndef SDRSSTBLTM2015NODEKERNEL_H | ||
#define SDRSSTBLTM2015NODEKERNEL_H | ||
|
||
#include "node_kernels/NodeKernel.h" | ||
#include "FieldTypeDef.h" | ||
|
||
#include "stk_mesh/base/BulkData.hpp" | ||
#include "stk_mesh/base/Ngp.hpp" | ||
#include "stk_mesh/base/NgpField.hpp" | ||
#include "stk_mesh/base/Types.hpp" | ||
|
||
namespace sierra { | ||
namespace nalu { | ||
|
||
class Realm; | ||
|
||
class SDRSSTBLTM2015NodeKernel : public NGPNodeKernel<SDRSSTBLTM2015NodeKernel> | ||
{ | ||
public: | ||
SDRSSTBLTM2015NodeKernel(const stk::mesh::MetaData&); | ||
|
||
SDRSSTBLTM2015NodeKernel() = delete; | ||
|
||
KOKKOS_DEFAULTED_FUNCTION | ||
virtual ~SDRSSTBLTM2015NodeKernel() = default; | ||
|
||
virtual void setup(Realm&) override; | ||
|
||
KOKKOS_FUNCTION | ||
virtual void execute( | ||
NodeKernelTraits::LhsType&, | ||
NodeKernelTraits::RhsType&, | ||
const stk::mesh::FastMeshIndex&) override; | ||
|
||
private: | ||
stk::mesh::NgpField<double> tke_; | ||
stk::mesh::NgpField<double> sdr_; | ||
stk::mesh::NgpField<double> density_; | ||
stk::mesh::NgpField<double> tvisc_; | ||
stk::mesh::NgpField<double> dudx_; | ||
stk::mesh::NgpField<double> dkdx_; | ||
stk::mesh::NgpField<double> dwdx_; | ||
stk::mesh::NgpField<double> dualNodalVolume_; | ||
stk::mesh::NgpField<double> fOneBlend_; | ||
|
||
unsigned tkeID_{stk::mesh::InvalidOrdinal}; | ||
unsigned sdrID_{stk::mesh::InvalidOrdinal}; | ||
unsigned densityID_{stk::mesh::InvalidOrdinal}; | ||
unsigned tviscID_{stk::mesh::InvalidOrdinal}; | ||
unsigned dudxID_{stk::mesh::InvalidOrdinal}; | ||
unsigned dkdxID_{stk::mesh::InvalidOrdinal}; | ||
unsigned dwdxID_{stk::mesh::InvalidOrdinal}; | ||
unsigned dualNodalVolumeID_{stk::mesh::InvalidOrdinal}; | ||
unsigned fOneBlendID_{stk::mesh::InvalidOrdinal}; | ||
|
||
NodeKernelTraits::DblType betaStar_; | ||
NodeKernelTraits::DblType tkeProdLimitRatio_; | ||
NodeKernelTraits::DblType sigmaWTwo_; | ||
NodeKernelTraits::DblType betaOne_; | ||
NodeKernelTraits::DblType betaTwo_; | ||
NodeKernelTraits::DblType gammaOne_; | ||
NodeKernelTraits::DblType gammaTwo_; | ||
NodeKernelTraits::DblType sdrAmb_; | ||
|
||
const int nDim_; | ||
|
||
bool lengthScaleLimiter_; | ||
NodeKernelTraits::DblType corfac_; | ||
NodeKernelTraits::DblType referenceVelocity_; | ||
}; | ||
|
||
} // namespace nalu | ||
} // namespace sierra | ||
|
||
#endif /* SDRSSTBLTM2015NODEKERNEL_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC | ||
// (NTESS), National Renewable Energy Laboratory, University of Texas Austin, | ||
// Northwest Research Associates. Under the terms of Contract DE-NA0003525 | ||
// with NTESS, the U.S. Government retains certain rights in this software. | ||
// | ||
// This software is released under the BSD 3-clause license. See LICENSE file | ||
// for more details. | ||
// | ||
|
||
#ifndef TKESSTBLTM2015NODEKERNEL_H | ||
#define TKESSTBLTM2015NODEKERNEL_H | ||
|
||
#include "node_kernels/NodeKernel.h" | ||
#include "FieldTypeDef.h" | ||
#include "stk_mesh/base/BulkData.hpp" | ||
#include "stk_mesh/base/Ngp.hpp" | ||
#include "stk_mesh/base/NgpField.hpp" | ||
#include "stk_mesh/base/Types.hpp" | ||
|
||
namespace sierra { | ||
namespace nalu { | ||
|
||
class Realm; | ||
|
||
class TKESSTBLTM2015NodeKernel : public NGPNodeKernel<TKESSTBLTM2015NodeKernel> | ||
{ | ||
public: | ||
TKESSTBLTM2015NodeKernel(const stk::mesh::MetaData&); | ||
|
||
TKESSTBLTM2015NodeKernel() = delete; | ||
|
||
KOKKOS_DEFAULTED_FUNCTION | ||
virtual ~TKESSTBLTM2015NodeKernel() = default; | ||
|
||
virtual void setup(Realm&) override; | ||
|
||
KOKKOS_FUNCTION | ||
virtual void execute( | ||
NodeKernelTraits::LhsType&, | ||
NodeKernelTraits::RhsType&, | ||
const stk::mesh::FastMeshIndex&) override; | ||
|
||
private: | ||
stk::mesh::NgpField<double> tke_; | ||
stk::mesh::NgpField<double> sdr_; | ||
stk::mesh::NgpField<double> gamint_; | ||
stk::mesh::NgpField<double> density_; | ||
stk::mesh::NgpField<double> tvisc_; | ||
stk::mesh::NgpField<double> visc_; | ||
stk::mesh::NgpField<double> dudx_; | ||
stk::mesh::NgpField<double> wallDist_; | ||
stk::mesh::NgpField<double> dualNodalVolume_; | ||
|
||
unsigned tkeID_{stk::mesh::InvalidOrdinal}; | ||
unsigned sdrID_{stk::mesh::InvalidOrdinal}; | ||
unsigned gamintID_{stk::mesh::InvalidOrdinal}; | ||
unsigned densityID_{stk::mesh::InvalidOrdinal}; | ||
unsigned viscID_{stk::mesh::InvalidOrdinal}; | ||
unsigned tviscID_{stk::mesh::InvalidOrdinal}; | ||
unsigned dudxID_{stk::mesh::InvalidOrdinal}; | ||
unsigned wallDistID_{stk::mesh::InvalidOrdinal}; | ||
unsigned dualNodalVolumeID_{stk::mesh::InvalidOrdinal}; | ||
|
||
NodeKernelTraits::DblType betaStar_; | ||
NodeKernelTraits::DblType tkeProdLimitRatio_; | ||
NodeKernelTraits::DblType tkeAmb_; | ||
NodeKernelTraits::DblType sdrAmb_; | ||
|
||
const int nDim_; | ||
}; | ||
|
||
} // namespace nalu | ||
} // namespace sierra | ||
|
||
#endif /* TKESSTBLTM2015NODEKERNEL_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
reg_tests/test_files/airfoilSST_Gamma_Trans/airfoilSST_Gamma_Trans.norm.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
9886408.858641421 1 0.0146628 | ||
3938.732212071351 2 0.0293255 | ||
43.78119071175424 3 0.0439883 | ||
26.35564999333952 4 0.058651 | ||
18.24183547843733 5 0.0733138 |
Oops, something went wrong.