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