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