NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
include
NeoFOAM
finiteVolume
cellCentred
boundary
surface
empty.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// SPDX-FileCopyrightText: 2023 NeoFOAM authors
3
4
#pragma once
5
6
#include <Kokkos_Core.hpp>
7
8
#include "
NeoFOAM/core.hpp
"
9
#include "
NeoFOAM/finiteVolume/cellCentred/boundary/surfaceBoundaryFactory.hpp
"
10
#include "
NeoFOAM/mesh/unstructured.hpp
"
11
12
namespace
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary
13
{
14
15
template
<
typename
ValueType>
16
class
Empty
:
public
SurfaceBoundaryFactory
<ValueType>::template
Register
<Empty<ValueType>>
17
{
18
using
Base =
SurfaceBoundaryFactory<ValueType>::template
Register<Empty<ValueType>
>;
19
20
public
:
21
22
Empty
(
const
UnstructuredMesh
& mesh,
const
Dictionary
& dict, std::size_t patchID)
23
: Base(mesh, dict, patchID)
24
{}
25
26
virtual
void
correctBoundaryCondition
([[maybe_unused]]
DomainField<ValueType>
& domainField
27
)
override
28
{}
29
30
static
std::string
name
() {
return
"empty"
; }
31
32
static
std::string
doc
() {
return
"Do nothing on the boundary."
; }
33
34
static
std::string
schema
() {
return
"none"
; }
35
36
virtual
std::unique_ptr<SurfaceBoundaryFactory<ValueType>>
clone
()
const override
37
{
38
return
std::make_unique<Empty>(*
this
);
39
}
40
};
41
42
}
NeoFOAM::Dictionary
A class representing a dictionary that stores key-value pairs.
Definition
dictionary.hpp:33
NeoFOAM::DomainField
Represents the domain fields for a computational domain.
Definition
domainField.hpp:32
NeoFOAM::UnstructuredMesh
Represents an unstructured mesh in NeoFOAM.
Definition
unstructuredMesh.hpp:27
NeoFOAM::finiteVolume::cellCentred::SurfaceBoundaryFactory
Definition
surfaceBoundaryFactory.hpp:21
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Empty
Definition
empty.hpp:17
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Empty::Empty
Empty(const UnstructuredMesh &mesh, const Dictionary &dict, std::size_t patchID)
Definition
empty.hpp:22
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Empty::clone
virtual std::unique_ptr< SurfaceBoundaryFactory< ValueType > > clone() const override
Definition
empty.hpp:36
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Empty::schema
static std::string schema()
Definition
empty.hpp:34
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Empty::correctBoundaryCondition
virtual void correctBoundaryCondition(DomainField< ValueType > &domainField) override
Definition
empty.hpp:26
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Empty::name
static std::string name()
Definition
empty.hpp:30
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Empty::doc
static std::string doc()
Definition
empty.hpp:32
Register
A template class for registering derived classes with a base class.
core.hpp
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary
Definition
calculated.hpp:13
surfaceBoundaryFactory.hpp
unstructured.hpp
Generated by
1.9.8