NeoN
A framework for CFD software
Loading...
Searching...
No Matches
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
10#include "NeoN/mesh/unstructured/unstructuredMesh.hpp" // UnstructuredMesh
11
13{
14
15template<typename ValueType>
16class Empty : public VolumeBoundaryFactory<ValueType>::template Register<Empty<ValueType>>
17{
19
20public:
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}
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:24
virtual std::unique_ptr< VolumeBoundaryFactory< ValueType > > clone() const final
Definition empty.hpp:38
virtual void correctBoundaryCondition(Field< ValueType > &domainVector) final
Definition empty.hpp:28
A template class for registering derived classes with a base class.
int32_t localIdx
Definition label.hpp:50