NeoN
A framework for CFD software
Loading...
Searching...
No Matches
include
NeoN
finiteVolume
cellCentred
boundary
surface
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
9
#include "
NeoN/finiteVolume/cellCentred/boundary/surfaceBoundaryFactory.hpp
"
10
#include "
NeoN/mesh/unstructured/unstructuredMesh.hpp
"
11
12
namespace
NeoN::finiteVolume::cellCentred::surfaceBoundary
13
{
14
15
template
<
typename
ValueType>
16
class
Calculated
:
17
public
SurfaceBoundaryFactory
<ValueType>::template
Register
<Calculated<ValueType>>
18
{
19
using
Base =
SurfaceBoundaryFactory<ValueType>::template
Register<Calculated<ValueType>
>;
20
21
public
:
22
23
using
CalculatedType
=
Calculated<ValueType>
;
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
}
NeoN::Dictionary
A class representing a dictionary that stores key-value pairs.
Definition
dictionary.hpp:35
NeoN::Field
Represents the domain fields for a computational domain.
Definition
field.hpp:36
NeoN::UnstructuredMesh
Represents an unstructured mesh in NeoN.
Definition
unstructuredMesh.hpp:31
NeoN::finiteVolume::cellCentred::SurfaceBoundaryFactory
Definition
surfaceBoundaryFactory.hpp:23
NeoN::finiteVolume::cellCentred::surfaceBoundary::Calculated
Definition
calculated.hpp:18
NeoN::finiteVolume::cellCentred::surfaceBoundary::Calculated::correctBoundaryCondition
virtual void correctBoundaryCondition(Field< ValueType > &domainVector) override
Definition
calculated.hpp:29
NeoN::finiteVolume::cellCentred::surfaceBoundary::Calculated::clone
virtual std::unique_ptr< SurfaceBoundaryFactory< ValueType > > clone() const override
Definition
calculated.hpp:38
NeoN::finiteVolume::cellCentred::surfaceBoundary::Calculated::name
static std::string name()
Definition
calculated.hpp:32
NeoN::finiteVolume::cellCentred::surfaceBoundary::Calculated::doc
static std::string doc()
Definition
calculated.hpp:34
NeoN::finiteVolume::cellCentred::surfaceBoundary::Calculated::schema
static std::string schema()
Definition
calculated.hpp:36
NeoN::finiteVolume::cellCentred::surfaceBoundary::Calculated::Calculated
Calculated(const UnstructuredMesh &mesh, const Dictionary &dict, localIdx patchID)
Definition
calculated.hpp:25
Register
A template class for registering derived classes with a base class.
NeoN::finiteVolume::cellCentred::surfaceBoundary
Definition
calculated.hpp:13
NeoN::localIdx
int32_t localIdx
Definition
label.hpp:32
surfaceBoundaryFactory.hpp
unstructuredMesh.hpp
Generated by
1.9.8