Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
ScalarDiffElemKernel.h
Go to the documentation of this file.
1 /*------------------------------------------------------------------------*/
2 /* Copyright 2014 National Renewable Energy Laboratory. */
3 /* This software is released under the license detailed */
4 /* in the file, LICENSE, which is located in the top-level Nalu */
5 /* directory structure */
6 /*------------------------------------------------------------------------*/
7 
8 #ifndef SCALARDIFFELEMKERNEL_H
9 #define SCALARDIFFELEMKERNEL_H
10 
11 #include "Kernel.h"
12 #include "FieldTypeDef.h"
13 
14 #include <stk_mesh/base/BulkData.hpp>
15 #include <stk_mesh/base/Entity.hpp>
16 
17 #include <Kokkos_Core.hpp>
18 
19 namespace sierra {
20 namespace nalu {
21 
22 class SolutionOptions;
23 class MasterElement;
24 class ElemDataRequests;
25 
28 template<typename AlgTraits>
30 {
31 public:
33  const stk::mesh::BulkData&,
34  const SolutionOptions&,
38 
39  virtual ~ScalarDiffElemKernel();
40 
44  virtual void execute(
48 
49 private:
50  ScalarDiffElemKernel() = delete;
51 
55 
57  const int* lrscv_;
58  const bool shiftedGradOp_;
59 
61  Kokkos::View<DoubleType[AlgTraits::numScsIp_][AlgTraits::nodesPerElement_]> v_shape_function_ { "v_shape_func" };
62 };
63 
64 } // nalu
65 } // sierra
66 
67 #endif /* SCALARDIFFELEMKERNEL_H */
Definition: ABLForcingAlgorithm.C:26
ScalarFieldType * scalarQ_
Definition: ScalarDiffElemKernel.h:52
ScalarFieldType * diffFluxCoeff_
Definition: ScalarDiffElemKernel.h:53
Definition: ElemDataRequests.h:66
Definition: SolutionOptions.h:38
virtual void execute(SharedMemView< DoubleType ** > &, SharedMemView< DoubleType * > &, ScratchViews< DoubleType > &)
Execute the kernel within a Kokkos loop and populate the LHS and RHS for the linear solve...
Definition: ScalarDiffElemKernel.C:67
stk::mesh::Field< double, stk::mesh::Cartesian > VectorFieldType
Definition: FieldTypeDef.h:24
const bool shiftedGradOp_
Definition: ScalarDiffElemKernel.h:58
CVFEM scalar advection/diffusion kernel.
Definition: ScalarDiffElemKernel.h:29
stk::mesh::Field< double > ScalarFieldType
Definition: FieldTypeDef.h:19
Definition: UnitTestMasterElements.C:367
Base class for computational kernels in Nalu.
Definition: Kernel.h:63
Kokkos::View< DoubleType[AlgTraits::numScsIp_][AlgTraits::nodesPerElement_]> v_shape_function_
Shape functions.
Definition: ScalarDiffElemKernel.h:61
Kokkos::View< T, Kokkos::LayoutRight, DeviceShmem, Kokkos::MemoryUnmanaged > SharedMemView
Definition: KokkosInterface.h:25
virtual ~ScalarDiffElemKernel()
Definition: ScalarDiffElemKernel.C:62
VectorFieldType * coordinates_
Definition: ScalarDiffElemKernel.h:54
Definition: ScratchViews.h:82
const int * lrscv_
Left right node indicators.
Definition: ScalarDiffElemKernel.h:57