NeoN
A framework for CFD software
Loading...
Searching...
No Matches
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
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 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}
A class representing a dictionary that stores key-value pairs.
Represents the domain fields for a computational domain.
Definition field.hpp:36
Represents an unstructured mesh in NeoN.
Empty(const UnstructuredMesh &mesh, const Dictionary &dict, localIdx patchID)
Definition empty.hpp:22
virtual std::unique_ptr< VolumeBoundaryFactory< ValueType > > clone() const final
Definition empty.hpp:34
virtual void correctBoundaryCondition(Field< ValueType > &domainVector) final
Definition empty.hpp:26
A template class for registering derived classes with a base class.
int32_t localIdx
Definition label.hpp:32