NeoN
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
calculated.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 Calculated : public VolumeBoundaryFactory<ValueType>::template Register<Calculated<ValueType>>
16{
18
19public:
20
22
23 Calculated(const UnstructuredMesh& mesh, const Dictionary& dict, localIdx patchID)
24 : Base(mesh, dict, patchID)
25 {}
26
27 virtual void correctBoundaryCondition([[maybe_unused]] Field<ValueType>& domainVector) final {}
28
29 static std::string name() { return "calculated"; }
30
31 static std::string doc() { return "TBD"; }
32
33 static std::string schema() { return "none"; }
34
35 virtual std::unique_ptr<VolumeBoundaryFactory<ValueType>> clone() const final
36 {
37 return std::make_unique<Calculated>(*this);
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.
virtual std::unique_ptr< VolumeBoundaryFactory< ValueType > > clone() const final
virtual void correctBoundaryCondition(Field< ValueType > &domainVector) final
Calculated(const UnstructuredMesh &mesh, const Dictionary &dict, localIdx patchID)
A template class for registering derived classes with a base class.
int32_t localIdx
Definition label.hpp:30