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>
17 public SurfaceBoundaryFactory<ValueType>::template Register<Calculated<ValueType>>
18{
20
21public:
22
24
25 Calculated(const UnstructuredMesh& mesh, const Dictionary& dict, localIdx patchID)
26 : Base(mesh, dict, patchID)
27 {}
28
29 virtual void correctBoundaryCondition([[maybe_unused]] Field<ValueType>& domainVector) override
30 {}
31
32 static std::string name() { return "calculated"; }
33
34 static std::string doc() { return "TBD"; }
35
36 static std::string schema() { return "none"; }
37
38 virtual std::unique_ptr<SurfaceBoundaryFactory<ValueType>> clone() const override
39 {
40 return std::make_unique<Calculated>(*this);
41 }
42};
43}
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 void correctBoundaryCondition(Field< ValueType > &domainVector) override
virtual std::unique_ptr< SurfaceBoundaryFactory< ValueType > > clone() const override
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