#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "crusde_api.h"
Functions | |
const char * | get_name () |
const char * | get_version () |
const char * | get_authors () |
PluginCategory | get_category () |
const char * | get_description () |
void | register_parameter () |
Register parameters this Green's function claims from the input. | |
void | register_output_fields () |
Register output fields for spatial directions this Green's function calculates. | |
void | request_plugins () |
void | init () |
Initialize members that depend on registered values. | |
void | run () |
Not used in this plugin, left empty! | |
void | clear () |
Clean-up before this plug-in gets unloaded. | |
int | get_value_at (double **result, int x, int y) |
Returns the Green's Function value at Point(x,y). | |
Variables | |
double * | p_g |
gravity [m/s^2] | |
double * | p_E |
Young's Modulus [GPa]. | |
double * | p_nu |
Poisson's ratio [-]. | |
double | g |
gravity [m/s^2] | |
double | E |
Young's Modulus [GPa]. | |
double | nu |
Poisson's ratio [-]. | |
double | U_vert_const |
Constant part of the vertical displacement equation. | |
double | U_hori_const |
Constant part of the horizontal displacement equation. | |
double | xx |
double | yy |
double | theta |
double | r |
int | quadrant |
short | sin_sign |
short | cos_sign |
int | x_pos |
int | y_pos |
int | z_pos |
double | backpack [3] |
void clear | ( | ) |
Clean-up before this plug-in gets unloaded.
Yet, there is nothing to free here.
const char* get_authors | ( | ) |
PluginCategory get_category | ( | ) |
References GREEN_PLUGIN.
const char* get_description | ( | ) |
const char* get_name | ( | ) |
int get_value_at | ( | double ** | result, | |
int | x, | |||
int | y | |||
) |
Returns the Green's Function value at Point(x,y).
TODO!
x | The x-Coordinate of the wanted value. | |
y | The y-Coordinate of the wanted value. |
References cos_sign, crusde_get_gridsize(), crusde_get_quadrant(), NOERROR, quadrant, r, sin_sign, theta, U_hori_const, U_vert_const, x_pos, xx, y_pos, yy, and z_pos.
const char* get_version | ( | ) |
void init | ( | ) |
Initialize members that depend on registered values.
This function must not be called before register_parameter() unless none of the necessary values depends on parameters provided by the user, which are only set after they have been registered. This function is called some time after register_parameter().
Here U_vert_const and U_hori_const are initialized as follows:
References E, g, nu, p_E, p_g, p_nu, PI, U_hori_const, and U_vert_const.
void register_output_fields | ( | ) |
Register output fields for spatial directions this Green's function calculates.
This function calls crusde_register_output_field defined in crusde_api.h to register output field in the following order:
References crusde_info(), crusde_register_output_field(), get_name(), X_FIELD, x_pos, Y_FIELD, y_pos, Z_FIELD, and z_pos.
void register_parameter | ( | ) |
Register parameters this Green's function claims from the input.
This function calls crusde_register_green_param() defined in crusde_api.h to register references to parameters this Green's function will need to operate properly. In case an XML is used to configure the experiment, the reference to this parameter will be identified by the string passed as second argument to register_green_param().
This function registers the references in the following order:
References crusde_register_param_double(), get_category(), p_E, p_g, and p_nu.
void request_plugins | ( | ) |
void run | ( | ) |
Not used in this plugin, left empty!
double backpack[3] |
short cos_sign |
Referenced by get_value_at().
double g |
gravity [m/s^2]
Referenced by InputHandler::getGridSize(), and init().
double* p_E |
Young's Modulus [GPa].
Referenced by init(), and register_parameter().
double* p_g |
gravity [m/s^2]
Referenced by init(), and register_parameter().
double* p_nu |
Poisson's ratio [-].
Referenced by init(), and register_parameter().
int quadrant |
Referenced by get_value_at().
double r |
Referenced by get_value_at(), and InputHandler::getResultFileName().
short sin_sign |
Referenced by get_value_at().
double theta |
Referenced by get_value_at().
double U_hori_const |
Constant part of the horizontal displacement equation.
Referenced by get_value_at(), and init().
double U_vert_const |
Constant part of the vertical displacement equation.
Referenced by get_value_at(), and init().
int x_pos |
double xx |
Referenced by get_value_at().
int y_pos |
double yy |
Referenced by get_value_at().
int z_pos |