MFEM  v4.5.2
Finite element discretization library
convection.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010-2023, Lawrence Livermore National Security, LLC. Produced
2 // at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3 // LICENSE and NOTICE for details. LLNL-CODE-806117.
4 //
5 // This file is part of the MFEM library. For more information and source code
6 // availability visit https://mfem.org.
7 //
8 // MFEM is free software; you can redistribute it and/or modify it under the
9 // terms of the BSD-3 license. We welcome feedback and contributions, see file
10 // CONTRIBUTING.md for details.
11 
12 #ifndef MFEM_LIBCEED_CONV_HPP
13 #define MFEM_LIBCEED_CONV_HPP
14 
15 #include "../../interface/integrator.hpp"
16 #include "../../interface/mixed_integrator.hpp"
17 #include "../../../fespace.hpp"
18 
19 namespace mfem
20 {
21 
22 namespace ceed
23 {
24 
25 /// Represent a ConvectionIntegrator with AssemblyLevel::Partial using libCEED.
27 {
28 public:
30  const mfem::IntegrationRule &ir,
32  const double alpha);
33 };
34 
35 class MixedPAConvectionIntegrator : public MixedIntegrator<PAIntegrator>
36 {
37 public:
39  const mfem::FiniteElementSpace &fes,
41  const double alpha);
42 };
43 
44 /// Represent a ConvectionIntegrator with AssemblyLevel::None using libCEED.
46 {
47 public:
49  const mfem::IntegrationRule &ir,
51  const double alpha);
52 };
53 
54 class MixedMFConvectionIntegrator : public MixedIntegrator<MFIntegrator>
55 {
56 public:
58  const mfem::FiniteElementSpace &fes,
60  const double alpha);
61 };
62 
63 }
64 
65 }
66 
67 #endif // MFEM_LIBCEED_CONV_HPP
Represent a ConvectionIntegrator with AssemblyLevel::None using libCEED.
Definition: convection.hpp:45
Class for an integration rule - an Array of IntegrationPoint.
Definition: intrules.hpp:90
Represent a ConvectionIntegrator with AssemblyLevel::Partial using libCEED.
Definition: convection.hpp:26
Base class for vector Coefficients that optionally depend on time and space.
MFConvectionIntegrator(const mfem::FiniteElementSpace &fes, const mfem::IntegrationRule &ir, mfem::VectorCoefficient *Q, const double alpha)
Definition: convection.cpp:79
This class wraps a ceed::PAIntegrator or ceed::MFIntegrator to support mixed finite element spaces...
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
Definition: fespace.hpp:96
PAConvectionIntegrator(const mfem::FiniteElementSpace &fes, const mfem::IntegrationRule &ir, mfem::VectorCoefficient *Q, const double alpha)
Definition: convection.cpp:50
MixedMFConvectionIntegrator(const ConvectionIntegrator &integ, const mfem::FiniteElementSpace &fes, mfem::VectorCoefficient *Q, const double alpha)
Definition: convection.cpp:94
const double alpha
Definition: ex15.cpp:369
MixedPAConvectionIntegrator(const ConvectionIntegrator &integ, const mfem::FiniteElementSpace &fes, mfem::VectorCoefficient *Q, const double alpha)
Definition: convection.cpp:65
alpha (q . grad u, v)