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