NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
include
NeoFOAM
finiteVolume
cellCentred
boundary
surface
calculated.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// SPDX-FileCopyrightText: 2023 NeoFOAM authors
3
4
#pragma once
5
6
#include <Kokkos_Core.hpp>
7
8
#include "
NeoFOAM/core.hpp
"
9
#include "
NeoFOAM/finiteVolume/cellCentred/boundary/surfaceBoundaryFactory.hpp
"
10
#include "
NeoFOAM/mesh/unstructured.hpp
"
11
12
namespace
NeoFOAM::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, std::size_t patchID)
26
: Base(mesh, dict, patchID)
27
{}
28
29
virtual
void
correctBoundaryCondition
([[maybe_unused]]
DomainField<ValueType>
& domainField
30
)
override
31
{}
32
33
static
std::string
name
() {
return
"calculated"
; }
34
35
static
std::string
doc
() {
return
"TBD"
; }
36
37
static
std::string
schema
() {
return
"none"
; }
38
39
virtual
std::unique_ptr<SurfaceBoundaryFactory<ValueType>>
clone
()
const override
40
{
41
return
std::make_unique<Calculated>(*
this
);
42
}
43
};
44
}
NeoFOAM::Dictionary
A class representing a dictionary that stores key-value pairs.
Definition
dictionary.hpp:33
NeoFOAM::DomainField
Represents the domain fields for a computational domain.
Definition
domainField.hpp:32
NeoFOAM::UnstructuredMesh
Represents an unstructured mesh in NeoFOAM.
Definition
unstructuredMesh.hpp:27
NeoFOAM::finiteVolume::cellCentred::SurfaceBoundaryFactory
Definition
surfaceBoundaryFactory.hpp:21
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Calculated
Definition
calculated.hpp:18
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Calculated::Calculated
Calculated(const UnstructuredMesh &mesh, const Dictionary &dict, std::size_t patchID)
Definition
calculated.hpp:25
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Calculated::clone
virtual std::unique_ptr< SurfaceBoundaryFactory< ValueType > > clone() const override
Definition
calculated.hpp:39
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Calculated::name
static std::string name()
Definition
calculated.hpp:33
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Calculated::correctBoundaryCondition
virtual void correctBoundaryCondition(DomainField< ValueType > &domainField) override
Definition
calculated.hpp:29
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Calculated::doc
static std::string doc()
Definition
calculated.hpp:35
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary::Calculated::schema
static std::string schema()
Definition
calculated.hpp:37
Register
A template class for registering derived classes with a base class.
core.hpp
NeoFOAM::finiteVolume::cellCentred::surfaceBoundary
Definition
calculated.hpp:13
surfaceBoundaryFactory.hpp
unstructured.hpp
Generated by
1.9.8