NeoN
WIP Prototype of a modern OpenFOAM core
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 <Kokkos_Core.hpp>
7
10
12{
13
14template<typename ValueType>
15class Empty : public SurfaceBoundaryFactory<ValueType>::template Register<Empty<ValueType>>
16{
18
19public:
20
21 Empty(const UnstructuredMesh& mesh, const Dictionary& dict, localIdx patchID)
22 : Base(mesh, dict, patchID)
23 {}
24
25 virtual void correctBoundaryCondition([[maybe_unused]] Field<ValueType>& domainVector) override
26 {}
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<SurfaceBoundaryFactory<ValueType>> clone() const override
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:34
Represents an unstructured mesh in NeoN.
Empty(const UnstructuredMesh &mesh, const Dictionary &dict, localIdx patchID)
Definition empty.hpp:21
virtual std::unique_ptr< SurfaceBoundaryFactory< ValueType > > clone() const override
Definition empty.hpp:34
virtual void correctBoundaryCondition(Field< ValueType > &domainVector) override
Definition empty.hpp:25
A template class for registering derived classes with a base class.
int32_t localIdx
Definition label.hpp:30