#include <cmath>
Go to the source code of this file.
|
void | SetU (const int nx, const int ny, float u[]) |
|
void | SetF (const int nx, const int ny, float f[]) |
|
float | FunctF (const float x, const float y) |
|
float | FunctU (const float &x, const float &y) |
|
float FunctF |
( |
const float |
x, |
|
|
const float |
y |
|
) |
| |
|
inline |
User function: f(x
,y
)
- Parameters
-
[in] | x | x-coordinate of discretization point |
[in] | y | y-coordinate of discretization point |
- Returns
- value for right hand side f(
x
,y
)
float FunctU |
( |
const float & |
, |
|
|
const float & |
|
|
) |
| |
User function: u(x
,y
)
- Parameters
-
[in] | x | x-coordinate of discretization point |
[in] | y | y-coordinate of discretization point |
- Returns
- value for solution vector u(
x
,y
)
- return sin(3.14159*1*x)*sin(3.14159*1*y); */ /return 16.0*1024. ;* return (float)1.0 ; */
void SetF |
( |
const int |
nx, |
|
|
const int |
ny, |
|
|
float |
f[] |
|
) |
| |
User function: assignes values to right hand side vector f
.
- Parameters
-
[in] | nx | number of discretization intervals in x-direction |
[in] | ny | number of discretization intervals in y-direction |
[out] | f | vector for all nodes of local discretization |
void SetU |
( |
const int |
nx, |
|
|
const int |
ny, |
|
|
float |
u[] |
|
) |
| |
User function: assignes values to solution vector u
.
- Parameters
-
[in] | nx | number of discretization intervals in x-direction |
[in] | ny | number of discretization intervals in y-direction |
[out] | u | vector for all nodes of local discretization |