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 <Kokkos_Core.hpp>
8
11
13{
14
15template<typename ValueType>
16class Empty : public SurfaceBoundaryFactory<ValueType>::template Register<Empty<ValueType>>
17{
19
20public:
21
22 Empty(const UnstructuredMesh& mesh, const Dictionary& dict, localIdx patchID)
23 : Base(mesh, dict, patchID)
24 {}
25
26 virtual void correctBoundaryCondition([[maybe_unused]] Field<ValueType>& domainVector) override
27 {}
28
29 static std::string name() { return "empty"; }
30
31 static std::string doc() { return "Do nothing on the boundary."; }
32
33 static std::string schema() { return "none"; }
34
35 virtual std::unique_ptr<SurfaceBoundaryFactory<ValueType>> clone() const override
36 {
37 return std::make_unique<Empty>(*this);
38 }
39};
40
41}
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< SurfaceBoundaryFactory< ValueType > > clone() const override
Definition empty.hpp:35
virtual void correctBoundaryCondition(Field< ValueType > &domainVector) override
Definition empty.hpp:26
A template class for registering derived classes with a base class.
int32_t localIdx
Definition label.hpp:32