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 - 2026 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
using
Base::correctBoundaryCondition;
23
24
Empty
(
const
UnstructuredMesh
& mesh,
const
Dictionary
& dict,
localIdx
patchID)
25
: Base(mesh, dict, patchID, {.assignable =
true
, .fixesValue =
false
})
26
{}
27
28
virtual
void
correctBoundaryCondition
([[maybe_unused]]
Field<ValueType>
& domainVector)
final
{}
29
30
static
std::string
name
() {
return
"empty"
; }
31
32
std::string
getName
()
const override
{
return
name
(); }
33
34
static
std::string
doc
() {
return
"Do nothing on the boundary."
; }
35
36
static
std::string
schema
() {
return
"none"
; }
37
38
virtual
std::unique_ptr<VolumeBoundaryFactory<ValueType>>
clone
() const final
39
{
40
return
std::make_unique<Empty>(*
this
);
41
}
42
};
43
44
}
NeoN::Dictionary
A class representing a dictionary that stores key-value pairs.
Definition
dictionary.hpp:50
NeoN::Field
Represents the domain fields for a computational domain.
Definition
field.hpp:34
NeoN::UnstructuredMesh
Represents an unstructured mesh in NeoN.
Definition
unstructuredMesh.hpp:31
NeoN::finiteVolume::cellCentred::VolumeBoundaryFactory
Definition
volumeBoundaryFactory.hpp:44
NeoN::finiteVolume::cellCentred::volumeBoundary::Empty
Definition
empty.hpp:17
NeoN::finiteVolume::cellCentred::volumeBoundary::Empty::schema
static std::string schema()
Definition
empty.hpp:36
NeoN::finiteVolume::cellCentred::volumeBoundary::Empty::doc
static std::string doc()
Definition
empty.hpp:34
NeoN::finiteVolume::cellCentred::volumeBoundary::Empty::Empty
Empty(const UnstructuredMesh &mesh, const Dictionary &dict, localIdx patchID)
Definition
empty.hpp:24
NeoN::finiteVolume::cellCentred::volumeBoundary::Empty::clone
virtual std::unique_ptr< VolumeBoundaryFactory< ValueType > > clone() const final
Definition
empty.hpp:38
NeoN::finiteVolume::cellCentred::volumeBoundary::Empty::name
static std::string name()
Definition
empty.hpp:30
NeoN::finiteVolume::cellCentred::volumeBoundary::Empty::correctBoundaryCondition
virtual void correctBoundaryCondition(Field< ValueType > &domainVector) final
Definition
empty.hpp:28
NeoN::finiteVolume::cellCentred::volumeBoundary::Empty::getName
std::string getName() const override
Definition
empty.hpp:32
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:50
runtimeSelectionFactory.hpp
unstructuredMesh.hpp
volumeBoundaryFactory.hpp
Generated by
1.9.8