www.mooseframework.org
CNSFVNoSlopeReconstruction.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<SlopeReconstructionBase>();
15  params.addClassDescription(
16  "A user object that does no slope reconstruction in multi-dimensions.");
17  return params;
18 }
19 
20 CNSFVNoSlopeReconstruction::CNSFVNoSlopeReconstruction(const InputParameters & parameters)
21  : SlopeReconstructionBase(parameters)
22 {
23 }
24 
25 void
27 {
28  const Elem * elem = _current_elem;
29 
31  dof_id_type _elementID = elem->id();
32 
34  unsigned int nvars = 5;
35 
37  std::vector<RealGradient> ugrad(nvars, RealGradient(0., 0., 0.));
38 
39  _rslope[_elementID] = ugrad;
40 }
virtual void reconstructElementSlope()
compute the slope of the cell
Base class for piecewise linear slope reconstruction to get the slopes of element average variables...
std::map< dof_id_type, std::vector< RealGradient > > _rslope
store the reconstructed slopes into this map indexed by element ID
InputParameters validParams< SlopeReconstructionBase >()
InputParameters validParams< CNSFVNoSlopeReconstruction >()
CNSFVNoSlopeReconstruction(const InputParameters &parameters)