PLaSK library
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
ζ
ξ
φ
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
ζ
ξ
φ
Typedefs
a
c
d
e
f
i
l
m
o
p
r
s
t
u
x
Enumerations
Enumerator
_
a
b
c
e
f
i
l
m
o
p
r
s
t
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Enumerations
a
b
c
d
e
f
i
k
m
n
p
r
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Properties
o
Related Symbols
a
b
d
e
f
g
l
m
n
o
p
r
s
t
w
Files
File List
File Members
All
_
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
i
k
m
r
s
t
w
x
z
Variables
Typedefs
a
c
d
e
f
h
i
j
k
l
m
n
r
s
u
v
x
z
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
l
m
n
o
p
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
your_solver.hpp
Go to the documentation of this file.
1
/*
2
* This file is part of PLaSK (https://plask.app) by Photonics Group at TUL
3
* Copyright (c) 2022 Lodz University of Technology
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, version 3.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*/
18
#ifndef PLASK__SOLVER_YOUR_SOLVER_H
19
#define PLASK__SOLVER_YOUR_SOLVER_H
20
21
#include <
plask/plask.hpp
>
22
23
namespace
plask
{
namespace
ccategory {
namespace
your_solver {
24
29
struct
YourSolver
:
public
SolverWithMesh
<ForExample_Geometry2DCartesian, ForExample_RectilinearMesh2D> {
30
32
ReceiverFor<Temperature, Geometry2DCartesian>
inTemperature
;
33
35
ProviderFor<SomeSingleValueProperty>::WithValue
outSingleValue
;
36
38
ProviderFor<SomeFieldProperty, Geometry2DCartesian>::Delegate
outSomeField
;
39
40
YourSolver
(
const
std::string& name=
""
);
41
42
virtual
std::string
getClassName
()
const
{
return
"NameOfYourSolver"
; }
43
44
virtual
std::string
getClassDescription
()
const
{
45
return
"This solver does this and that. And this description can be e.g. shown as a hint in GUI."
;
46
}
44
virtual
std::string
getClassDescription
()
const
{
…
}
47
48
virtual
void
loadConfiguration
(
plask::XMLReader
& reader,
plask::Manager
& manager);
49
55
void
compute
(
double
parameter
);
56
57
protected
:
58
60
DataVector<double>
my_data
;
61
63
virtual
void
onInitialize
();
64
66
virtual
void
onInvalidate
();
67
69
const
DataVector<const double>
getDelegated
(
const
MeshD<2>
& dst_mesh,
InterpolationMethod
method=
INTERPOLATION_DEFAULT
);
70
71
};
29
struct
YourSolver
:
public
SolverWithMesh
<ForExample_Geometry2DCartesian, ForExample_RectilinearMesh2D> {
…
};
72
73
74
}}}
// namespace
23
namespace
plask
{
namespace
ccategory {
namespace
your_solver {
…
}
75
76
#endif
77
solvers
skel
your_solver.hpp
Generated by
1.9.8