00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef PDH_PLAST_FLOW_BC_H
00027 #define PDH_PLAST_FLOW_BC_H
00028
00029 #include <stdio.h>
00030
00031 #ifdef __cplusplus
00032 extern "C"
00033 {
00034 #endif
00035
00036
00037
00038
00039
00040
00041
00042
00043 typedef enum {
00044 BC_PLAST_FLOW_NONE,
00045 BC_PLAST_FLOW_NOSLIP,
00046 BC_PLAST_FLOW_FREE,
00047 BC_PLAST_FLOW_FREE_SLIP,
00048 BC_PLAST_FLOW_SYMMETRY,
00049 BC_PLAST_FLOW_VELOCITY,
00050 BC_PLAST_FLOW_TRACTION,
00051 BC_PLAST_FLOW_FRICTION
00052 } pdt_plast_flow_bctype;
00053
00054 typedef enum {
00055 BC_PLAST_FLOW_VEL_ORIENT_GLOB=0,
00056 BC_PLAST_FLOW_VEL_ORIENT_LOC=1
00057 } pdt_plast_flow_bc_vel_orient;
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070 typedef struct {
00071 int bnum;
00072 double v[3];
00073 int vel_orient;
00074 } pdt_plast_flow_bc_velocity;
00075
00076 typedef struct {
00077 int bnum;
00078 double t[3];
00079 } pdt_plast_flow_bc_traction;
00080
00081 typedef struct {
00082 int bnum;
00083 double n[3];
00084
00085 } pdt_plast_flow_bc_friction;
00086
00087 typedef struct {
00088 int bnum;
00089 double v[3];
00090 int vel_orient;
00091 } pdt_plast_flow_bc_symmetry;
00092
00093 typedef struct {
00094 int bnum;
00095 double v[3];
00096 int vel_orient;
00097 } pdt_plast_flow_bc_free_slip;
00098
00099 typedef struct {
00100 double p;
00101 double pin_node_coor[3];
00102 } pdt_plast_flow_pin_stress;
00103
00104 typedef struct {
00105 double v[3];
00106 double pin_node_coor[3];
00107 } pdt_plast_flow_pin_velocity;
00108
00109
00110
00111
00112
00113 typedef struct {
00114 int bnum;
00115 pdt_plast_flow_bctype bc_plast_flow;
00116 int bc_plast_flow_data_idx;
00117 } pdt_plast_flow_bc_assignments;
00118
00119
00120 typedef struct {
00121 pdt_plast_flow_bc_assignments *bc_assignments;
00122 int bc_assignments_count;
00123
00124 pdt_plast_flow_bc_velocity *bc_velocity;
00125 int bc_velocity_count;
00126
00127 pdt_plast_flow_bc_traction *bc_traction;
00128 int bc_traction_count;
00129
00130 pdt_plast_flow_bc_friction *bc_friction;
00131 int bc_friction_count;
00132
00133 pdt_plast_flow_bc_symmetry *bc_symmetry;
00134 int bc_symmetry_count;
00135
00136 pdt_plast_flow_bc_free_slip *bc_free_slip;
00137 int bc_free_slip_count;
00138
00139 pdt_plast_flow_pin_stress *pin_stress;
00140 int pin_stress_count;
00141
00142 pdt_plast_flow_pin_velocity *pin_velocity;
00143 int pin_velocity_count;
00144
00145
00146 } pdt_plast_flow_bc;
00147
00148
00149
00150
00151
00152
00153
00154
00155
00159 int pdr_plast_flow_bc_read(
00160 char *Work_dir,
00161 char *Filename,
00162 FILE *Interactive_output,
00163 pdt_plast_flow_bc *Bc_db);
00164
00168 int pdr_plast_flow_bc_free(pdt_plast_flow_bc *Bc_db);
00169
00173 int pdr_plast_flow_get_stress_pins_count(const pdt_plast_flow_bc *Bc_db);
00174
00175
00179 int pdr_plast_flow_get_velocity_pins_count(const pdt_plast_flow_bc *Bc_db);
00180
00181
00185 int pdr_plast_flow_get_bc_assign_count(const pdt_plast_flow_bc *Bc_db);
00186
00187
00191 pdt_plast_flow_pin_stress* pdr_plast_flow_get_stress_pin(
00192 const pdt_plast_flow_bc *Bc_db,
00193 int Idx
00194 );
00195
00199 pdt_plast_flow_pin_velocity* pdr_plast_flow_get_velocity_pin(
00200 const pdt_plast_flow_bc *Bc_db,
00201 int Idx
00202 );
00203
00207 pdt_plast_flow_bctype pdr_plast_flow_get_bc_type(
00208 const pdt_plast_flow_bc *Bc_db,
00209 int Bnum
00210 );
00211
00212
00216 void* pdr_plast_flow_get_bc_data(
00217 const pdt_plast_flow_bc *Bc_db,
00218 int Bnum
00219 );
00220
00221
00225 int pdr_plast_flow_update_timedep_bc(
00226 const pdt_plast_flow_bc *Bc_db,
00227 double Time
00228 );
00229
00230
00231 #ifdef __cplusplus
00232 }
00233 #endif
00234
00235 #endif