NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
include
NeoFOAM
finiteVolume
cellCentred
boundary
volume
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/runtimeSelectionFactory.hpp
"
// Register
9
#include "
NeoFOAM/core/dictionary.hpp
"
// Dictionary
10
#include "
NeoFOAM/finiteVolume/cellCentred/boundary/volumeBoundaryFactory.hpp
"
// VolumeBoundaryFactory
11
#include "
NeoFOAM/mesh/unstructured.hpp
"
// UnstructuredMesh
12
13
namespace
NeoFOAM::finiteVolume::cellCentred::volumeBoundary
14
{
15
16
template
<
typename
ValueType>
17
class
Empty
:
public
VolumeBoundaryFactory
<ValueType>::template
Register
<Empty<ValueType>>
18
{
19
using
Base =
VolumeBoundaryFactory<ValueType>::template
Register<Empty<ValueType>
>;
20
21
public
:
22
23
Empty
(
const
UnstructuredMesh
& mesh,
const
Dictionary
& dict, std::size_t patchID)
24
: Base(mesh, dict, patchID)
25
{}
26
27
virtual
void
correctBoundaryCondition
([[maybe_unused]]
DomainField<ValueType>
& domainField
28
)
final
29
{}
30
31
static
std::string
name
() {
return
"empty"
; }
32
33
static
std::string
doc
() {
return
"Do nothing on the boundary."
; }
34
35
static
std::string
schema
() {
return
"none"
; }
36
37
virtual
std::unique_ptr<VolumeBoundaryFactory<ValueType>>
clone
() const final
38
{
39
return
std::make_unique<Empty>(*
this
);
40
}
41
};
42
43
}
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::VolumeBoundaryFactory
Definition
volumeBoundaryFactory.hpp:21
NeoFOAM::finiteVolume::cellCentred::volumeBoundary::Empty
Definition
empty.hpp:18
NeoFOAM::finiteVolume::cellCentred::volumeBoundary::Empty::correctBoundaryCondition
virtual void correctBoundaryCondition(DomainField< ValueType > &domainField) final
Definition
empty.hpp:27
NeoFOAM::finiteVolume::cellCentred::volumeBoundary::Empty::Empty
Empty(const UnstructuredMesh &mesh, const Dictionary &dict, std::size_t patchID)
Definition
empty.hpp:23
NeoFOAM::finiteVolume::cellCentred::volumeBoundary::Empty::clone
virtual std::unique_ptr< VolumeBoundaryFactory< ValueType > > clone() const final
Definition
empty.hpp:37
NeoFOAM::finiteVolume::cellCentred::volumeBoundary::Empty::schema
static std::string schema()
Definition
empty.hpp:35
NeoFOAM::finiteVolume::cellCentred::volumeBoundary::Empty::name
static std::string name()
Definition
empty.hpp:31
NeoFOAM::finiteVolume::cellCentred::volumeBoundary::Empty::doc
static std::string doc()
Definition
empty.hpp:33
Register
A template class for registering derived classes with a base class.
dictionary.hpp
NeoFOAM::finiteVolume::cellCentred::volumeBoundary
Definition
calculated.hpp:13
runtimeSelectionFactory.hpp
unstructured.hpp
volumeBoundaryFactory.hpp
Generated by
1.9.8