NeoN
A framework for CFD software
Loading...
Searching...
No Matches
ddt.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
9
11{
12
13template<typename VectorType>
14class Ddt : public OperatorMixin<VectorType>
15{
16
17public:
18
19 Ddt(VectorType& field)
20 : OperatorMixin<VectorType>(field.exec(), field, Operator::Type::Implicit)
21 {}
22
23 std::string getName() const { return "TimeOperator"; }
24
26 {
27 NF_ERROR_EXIT("Not implemented");
28 }
29
31 {
32 NF_ERROR_EXIT("Not implemented");
33 }
34};
35
36/* @brief factory function to create a Ddt term as ddt() */
37template<typename VectorType>
38Ddt<VectorType> ddt(VectorType& in)
39{
40 return Ddt(in);
41};
42
43} // namespace NeoN
A class to contain the data and executors for a field and define some basic operations.
Definition vector.hpp:30
virtual const Executor & exec() const final
Definition operator.hpp:51
Ddt(VectorType &field)
Definition ddt.hpp:19
std::string getName() const
Definition ddt.hpp:23
void implicitOperation(la::LinearSystem< scalar, localIdx > &, scalar, scalar) const
Definition ddt.hpp:30
void explicitOperation(Vector< scalar > &, scalar, scalar) const
Definition ddt.hpp:25
A class representing a linear system of equations.
#define NF_ERROR_EXIT(message)
Macro for printing an error message and aborting the program.
Definition error.hpp:110
Ddt< VectorType > ddt(VectorType &in)
Definition ddt.hpp:38
float scalar
Definition scalar.hpp:16