Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Phillip Lino Rall
UGBlocks_V3
Commits
36eae1aa
Commit
36eae1aa
authored
Dec 03, 2020
by
Christoph Pflaum
Browse files
Parameter in einer Interpolationsklasse hinzugefuegt
parent
d82b8ebc
Changes
3
Hide whitespace changes
Inline
Side-by-side
program2D/source/extemp/cellvar2D.h
View file @
36eae1aa
...
@@ -188,6 +188,12 @@ double L_infty_cell(const Expr2D<A>& a, Marker2D& marker);
...
@@ -188,6 +188,12 @@ double L_infty_cell(const Expr2D<A>& a, Marker2D& marker);
template
<
class
A
>
template
<
class
A
>
double
L_infty_cell
(
const
Expr2D
<
A
>&
a
);
double
L_infty_cell
(
const
Expr2D
<
A
>&
a
);
template
<
class
A
>
double
Maximum_cell
(
const
Expr2D
<
A
>&
ao
);
template
<
class
A
>
double
Minimum_cell
(
const
Expr2D
<
A
>&
ao
);
/* @} */
/* @} */
...
...
program2D/source/interpol/interpolTwoD.cc
View file @
36eae1aa
...
@@ -77,7 +77,7 @@ Interpolate_on_structured_2Dgrid::Interpolate_on_structured_2Dgrid(int nx_, int
...
@@ -77,7 +77,7 @@ Interpolate_on_structured_2Dgrid::Interpolate_on_structured_2Dgrid(int nx_, int
}
}
Interpolate_on_structured_2Dgrid
::
Interpolate_on_structured_2Dgrid
(
Blockgrid2D
*
blockgrid_
)
{
Interpolate_on_structured_2Dgrid
::
Interpolate_on_structured_2Dgrid
(
Blockgrid2D
*
blockgrid_
,
double
factorIncrease
)
{
blockgrid
=
blockgrid_
;
blockgrid
=
blockgrid_
;
ug
=
blockgrid
->
Give_unstructured_grid
();
ug
=
blockgrid
->
Give_unstructured_grid
();
...
@@ -122,8 +122,9 @@ Interpolate_on_structured_2Dgrid::Interpolate_on_structured_2Dgrid(Blockgrid2D*
...
@@ -122,8 +122,9 @@ Interpolate_on_structured_2Dgrid::Interpolate_on_structured_2Dgrid(Blockgrid2D*
}
}
}
}
nx
=
Nmax
*
4
;
nx
=
Nmax
*
factorIncrease
;
ny
=
Nmax
*
4
;
ny
=
Nmax
*
factorIncrease
;
pWS
=
boxWS
;
pWS
=
boxWS
;
pEN
=
boxEN
;
pEN
=
boxEN
;
...
...
program2D/source/interpol/interpolTwoD.h
View file @
36eae1aa
...
@@ -76,7 +76,7 @@ class Interpolate_on_structured_2Dgrid {
...
@@ -76,7 +76,7 @@ class Interpolate_on_structured_2Dgrid {
* preparation for interpolation
* preparation for interpolation
@param blockgrid_ of unstructured grid
@param blockgrid_ of unstructured grid
**/
**/
Interpolate_on_structured_2Dgrid
(
Blockgrid2D
*
blockgrid_
);
Interpolate_on_structured_2Dgrid
(
Blockgrid2D
*
blockgrid_
,
double
factorIncrease
=
4
);
/**
/**
...
@@ -129,7 +129,7 @@ class Interpolate_on_structured_2Dgrid_with_data : protected Interpolate_on_stru
...
@@ -129,7 +129,7 @@ class Interpolate_on_structured_2Dgrid_with_data : protected Interpolate_on_stru
Interpolate_on_structured_2Dgrid_with_data
(
int
nx_
,
int
ny_
,
Interpolate_on_structured_2Dgrid_with_data
(
int
nx_
,
int
ny_
,
D2vector
pWS
,
D2vector
pEN
,
D2vector
pWS
,
D2vector
pEN
,
Blockgrid2D
&
blockgrid_
);
Blockgrid2D
&
blockgrid_
);
Interpolate_on_structured_2Dgrid_with_data
(
Blockgrid2D
&
blockgrid_
);
Interpolate_on_structured_2Dgrid_with_data
(
Blockgrid2D
&
blockgrid_
,
double
factorIncrease
=
4
);
void
setData
(
Variable2D
<
DTyp
>&
u
,
DTyp
defaultInterpolation
);
void
setData
(
Variable2D
<
DTyp
>&
u
,
DTyp
defaultInterpolation
);
...
@@ -361,8 +361,8 @@ Interpolate_on_structured_2Dgrid_with_data<DTyp>::Interpolate_on_structured_2Dgr
...
@@ -361,8 +361,8 @@ Interpolate_on_structured_2Dgrid_with_data<DTyp>::Interpolate_on_structured_2Dgr
}
}
template
<
class
DTyp
>
template
<
class
DTyp
>
Interpolate_on_structured_2Dgrid_with_data
<
DTyp
>::
Interpolate_on_structured_2Dgrid_with_data
(
Blockgrid2D
&
blockgrid_
)
Interpolate_on_structured_2Dgrid_with_data
<
DTyp
>::
Interpolate_on_structured_2Dgrid_with_data
(
Blockgrid2D
&
blockgrid_
,
double
factorIncrease
)
:
Interpolate_on_structured_2Dgrid
(
&
blockgrid_
)
{
:
Interpolate_on_structured_2Dgrid
(
&
blockgrid_
,
factorIncrease
)
{
data
=
new
DTyp
[
nx
*
ny
];
data
=
new
DTyp
[
nx
*
ny
];
for
(
int
i
=
0
;
i
<
nx
*
ny
;
++
i
)
data
[
i
]
=
0.0
;
for
(
int
i
=
0
;
i
<
nx
*
ny
;
++
i
)
data
[
i
]
=
0.0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment