#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "crusde_api.h"
Include dependency graph for green_elastic.c:
Functions | |
const char * | get_name () |
const char * | get_version () |
const char * | get_authors () |
const PluginCategory | get_category () |
const char * | get_description () |
void | register_parameter () |
Register parameters this Kernel claims from the input. | |
int | register_output_fields () |
Register output fields for spatial directions this Green's function calculates. | |
void | request_plugins () |
void | init () |
Initialization of the convolution. Allocation of memory for inputs and outputs. | |
void | run () |
Performs the fast convolution. | |
void | clear () |
Clean-up before this plug-in gets unloaded. | |
int | get_value_at (double **result, int x, int y, int t) |
Returns the Green's Function value at Point(x,y) at time 0. | |
Variables | |
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] |
with and
determining vertical and radial instantaneous displacement at point
, respectively.
The sequence in which the functions are called from the main program is as follows:
|
Clean-up before this plug-in gets unloaded. Yet, there is nothing to free here. |
|
|
|
|
|
|
|
|
|
Returns the Green's Function value at Point(x,y) at time 0. TODO!
|
|
|
|
Initialization of the convolution. Allocation of memory for inputs and outputs. 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:
|
|
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:
|
|
Register parameters this Kernel 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:
|
|
empty |
|
Performs the fast convolution. writes data for actual time step to file |
|
|
|
|
|
Young's Modulus [GPa].
|
|
gravity [m/s^2]
|
|
Poisson's ratio [-].
|
|
|
|
|
|
|
|
|
|
Constant part of the horizontal displacement equation.
|
|
Constant part of the vertical displacement equation.
|
|
|
|
|
|
|
|
|
|
|