-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
3,933 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
// 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 ChienKEpsilonEquationSystem_h | ||
#define ChienKEpsilonEquationSystem_h | ||
|
||
#include <EquationSystem.h> | ||
#include <FieldTypeDef.h> | ||
#include <NaluParsedTypes.h> | ||
|
||
namespace stk { | ||
struct topology; | ||
namespace mesh { | ||
class Part; | ||
} | ||
} // namespace stk | ||
|
||
namespace sierra { | ||
namespace nalu { | ||
|
||
class EquationSystems; | ||
class AlgorithmDriver; | ||
class TurbKineticEnergyEquationSystem; | ||
class TotalDissipationRateEquationSystem; | ||
|
||
class ChienKEpsilonEquationSystem : public EquationSystem | ||
{ | ||
|
||
public: | ||
ChienKEpsilonEquationSystem(EquationSystems& equationSystems); | ||
virtual ~ChienKEpsilonEquationSystem(); | ||
|
||
virtual void load(const YAML::Node&); | ||
|
||
virtual void initialize(); | ||
|
||
virtual void register_nodal_fields(stk::mesh::Part* part); | ||
|
||
virtual void register_wall_bc( | ||
stk::mesh::Part* part, | ||
const stk::topology& theTopo, | ||
const WallBoundaryConditionData& wallBCData); | ||
|
||
virtual void register_interior_algorithm(stk::mesh::Part* part); | ||
|
||
virtual void solve_and_update(); | ||
|
||
void initial_work(); | ||
virtual void post_external_data_transfer_work(); | ||
virtual void post_iter_work(); | ||
|
||
void clip_min_distance_to_wall(); | ||
void compute_dplus_function(); | ||
void update_and_clip(); | ||
void clip_ke( | ||
const stk::mesh::NgpMesh& ngpMesh, | ||
const stk::mesh::Selector& sel, | ||
stk::mesh::NgpField<double>& tke, | ||
stk::mesh::NgpField<double>& tdr); | ||
|
||
TurbKineticEnergyEquationSystem* tkeEqSys_; | ||
TotalDissipationRateEquationSystem* tdrEqSys_; | ||
|
||
ScalarFieldType* tke_; | ||
ScalarFieldType* tdr_; | ||
ScalarFieldType* minDistanceToWall_; | ||
ScalarFieldType* dplus_; | ||
|
||
bool isInit_; | ||
|
||
// saved of mesh parts that are for wall bcs | ||
std::vector<stk::mesh::Part*> wallBcPart_; | ||
|
||
bool resetAMSAverages_; | ||
|
||
const double tkeMinValue_{1.0e-8}; | ||
const double tdrMinValue_{1.0e-8}; | ||
}; | ||
|
||
} // namespace nalu | ||
} // namespace sierra | ||
|
||
#endif |
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
Oops, something went wrong.