-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27889 from freiler/k-epsilon-mods
K epsilon mods
- Loading branch information
Showing
80 changed files
with
661 additions
and
379 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
13 changes: 13 additions & 0 deletions
13
modules/navier_stokes/doc/content/source/auxkernels/RANSYPlusAux.md
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,13 @@ | ||
# RANSYPlusAux | ||
|
||
Computes the dimensionless wall distance $y^+$. | ||
|
||
Four different formulations are supported for computing $y^+$ as defined by the [!param](/AuxKernels/RANSYPlusAux/wall_treatment) parameter. | ||
Details on each of the four formulations can be found in | ||
[INSFVTurbulentViscosityWallFunction](source/fvbcs/INSFVTurbulentViscosityWallFunction.md). | ||
|
||
!syntax parameters /AuxKernels/RANSYPlusAux | ||
|
||
!syntax inputs /AuxKernels/RANSYPlusAux | ||
|
||
!syntax children /AuxKernels/RANSYPlusAux |
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,65 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#pragma once | ||
|
||
#include "AuxKernel.h" | ||
#include "INSFVVelocityVariable.h" | ||
#include "NS.h" | ||
|
||
/** | ||
* Computes wall y+ based on wall functions. | ||
*/ | ||
class RANSYPlusAux : public AuxKernel | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
virtual void initialSetup() override; | ||
|
||
RANSYPlusAux(const InputParameters & parameters); | ||
|
||
protected: | ||
virtual Real computeValue() override; | ||
|
||
/// the dimension of the simulation | ||
const unsigned int _dim; | ||
|
||
/// x-velocity | ||
const Moose::Functor<ADReal> & _u_var; | ||
/// y-velocity | ||
const Moose::Functor<ADReal> * _v_var; | ||
/// z-velocity | ||
const Moose::Functor<ADReal> * _w_var; | ||
|
||
/// Turbulent kinetic energy | ||
const Moose::Functor<ADReal> * _k; | ||
|
||
/// Density | ||
const Moose::Functor<ADReal> & _rho; | ||
|
||
/// Dynamic viscosity | ||
const Moose::Functor<ADReal> & _mu; | ||
|
||
/// Wall boundary names | ||
const std::vector<BoundaryName> & _wall_boundary_names; | ||
|
||
/// Method used for wall treatment | ||
NS::WallTreatmentEnum _wall_treatment; | ||
|
||
/// C_mu constant | ||
const Real _C_mu; | ||
|
||
///@{ | ||
/// Maps for wall treatement | ||
std::map<const Elem *, bool> _wall_bounded; | ||
std::map<const Elem *, std::vector<Real>> _dist; | ||
std::map<const Elem *, std::vector<const FaceInfo *>> _face_infos; | ||
///@} | ||
}; |
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.