ITHACA-FV
2026.04
Loading...
Searching...
No Matches
src
ITHACA_TORCH
Filters
Filter.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
██╗████████╗██╗ ██╗ █████╗ ██████╗ █████╗ ███████╗██╗ ██╗
3
██║╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔══██╗ ██╔════╝██║ ██║
4
██║ ██║ ███████║███████║██║ ███████║█████╗█████╗ ██║ ██║
5
██║ ██║ ██╔══██║██╔══██║██║ ██╔══██║╚════╝██╔══╝ ╚██╗ ██╔╝
6
██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ╚████╔╝
7
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═══╝
8
9
* In real Time Highly Advanced Computational Applications for Finite Volumes
10
* Copyright (C) 2017 by the ITHACA-FV authors
11
-------------------------------------------------------------------------------
12
License
13
This file is part of ITHACA-FV
14
ITHACA-FV is free software: you can redistribute it and/or modify
15
it under the terms of the GNU Lesser General Public License as published by
16
the Free Software Foundation, either version 3 of the License, or
17
(at your option) any later version.
18
ITHACA-FV is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU Lesser General Public License for more details.
22
You should have received a copy of the GNU Lesser General Public License
23
along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
24
Class
25
baseFilter
26
Description
27
set of functions to convert Eigen object to Torch objects and viceversa
28
SourceFiles
29
baseFilter.C
30
\*---------------------------------------------------------------------------*/
31
36
37
#ifndef FILTER_H
38
#define FILTER_H
39
#include <torch/script.h>
40
#include <torch/torch.h>
41
#include "typeInfo.H"
42
#include "runTimeSelectionTables.H"
43
#include "tmp.H"
44
#include "autoPtr.H"
45
#include "primitiveFields.H"
46
#include "fvCFD.H"
47
48
49
namespace
Foam
50
{
51
52
class
Filter
53
{
54
//- Disallow copy construct
55
Filter(
const
Filter&);
56
57
//- Disallow default bitwise assignment
58
void
operator=(
const
Filter&);
59
60
public
:
61
62
//- Runtime type information
63
TypeName(
"Filter"
);
64
65
declareRunTimeSelectionTable
66
(
67
autoPtr,
68
Filter,
69
dictionary,
70
(
71
const
dictionary& dict
72
),
73
(dict)
74
);
75
76
//- Construct null
77
Filter()
78
{};
79
80
//- Create and return a clone
81
virtual
autoPtr<Filter> clone()
const
= 0;
82
83
// Destructor
84
85
virtual
~Filter()
86
{};
87
88
virtual
List<scalarList> apply(
const
List<labelList>& cells,
89
const
List<point>& convPoints,
const
fvMesh& mesh)
const
= 0;
90
91
static
autoPtr<Filter> New
92
(
93
const
word& type,
94
const
dictionary& dict
95
);
96
97
};
98
99
}
100
101
#endif
Generated by
1.16.1