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
SteadyThermal3dContactSrcElemKernel.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 STEADYTHERMAL3DCONTACTSRCELEMKERNEL_H
9 #define STEADYTHERMAL3DCONTACTSRCELEMKERNEL_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 
26 template<typename AlgTraits>
28 {
29 public:
31  const stk::mesh::BulkData&,
34 
36 
37  virtual void execute(
41 
42 private:
44 
46 
47  const int *ipNodeMap_;
48 
49  const double a_;
50  const double k_;
51  const double pi_;
52 
53  // fixed scratch space
54  Kokkos::View<DoubleType[AlgTraits::numScvIp_][AlgTraits::nodesPerElement_]> v_shape_function_{"v_shape_function"};
55 };
56 
57 } // nalu
58 } // sierra
59 
60 #endif /* STEADYTHERMAL3DCONTACTSRCELEMKERNEL_H */
VectorFieldType * coordinates_
Definition: SteadyThermal3dContactSrcElemKernel.h:45
Definition: ABLForcingAlgorithm.C:26
Kokkos::View< DoubleType[AlgTraits::numScvIp_][AlgTraits::nodesPerElement_]> v_shape_function_
Definition: SteadyThermal3dContactSrcElemKernel.h:54
Definition: ElemDataRequests.h:66
Definition: SolutionOptions.h:38
stk::mesh::Field< double, stk::mesh::Cartesian > VectorFieldType
Definition: FieldTypeDef.h:24
const double pi_
Definition: SteadyThermal3dContactSrcElemKernel.h:51
const double k_
Definition: SteadyThermal3dContactSrcElemKernel.h:50
Definition: UnitTestMasterElements.C:367
Base class for computational kernels in Nalu.
Definition: Kernel.h:63
Kokkos::View< T, Kokkos::LayoutRight, DeviceShmem, Kokkos::MemoryUnmanaged > SharedMemView
Definition: KokkosInterface.h:25
const double a_
Definition: SteadyThermal3dContactSrcElemKernel.h:49
const int * ipNodeMap_
Definition: SteadyThermal3dContactSrcElemKernel.h:47
virtual ~SteadyThermal3dContactSrcElemKernel()
Definition: SteadyThermal3dContactSrcElemKernel.h:35
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: SteadyThermal3dContactSrcElemKernel.C:57
Definition: ScratchViews.h:82
Definition: SteadyThermal3dContactSrcElemKernel.h:27