NeoN
A framework for CFD software
Loading...
Searching...
No Matches
calculated.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 Calculated : public VolumeBoundaryFactory<ValueType>::template Register<Calculated<ValueType>>
17{
19
20public:
21
23
24 Calculated(const UnstructuredMesh& mesh, const Dictionary& dict, localIdx patchID)
25 : Base(mesh, dict, patchID, {.assignable = true})
26 {}
27
28 virtual void correctBoundaryCondition([[maybe_unused]] Field<ValueType>& domainVector) final {}
29
30 static std::string name() { return "calculated"; }
31
32 static std::string doc() { return "TBD"; }
33
34 static std::string schema() { return "none"; }
35
36 virtual std::unique_ptr<VolumeBoundaryFactory<ValueType>> clone() const final
37 {
38 return std::make_unique<Calculated>(*this);
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.
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:32