- 积分
- 0
- 注册时间
- 2007-1-19
- 仿真币
-
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2007-9-26 10:12:40
|
显示全部楼层
来自 浙江温州
!
!-------------------------- Default Units for Model ---------------------------!
!
!
defaults units &
length = mm &
angle = deg &
force = newton &
mass = kg &
time = sec
!
defaults units &
coordinate_system_type = cartesian &
orientation_type = body313
!
!------------------------ Default Attributes for Model ------------------------!
!
!
defaults attributes &
inheritance = bottom_up &
icon_visibility = on &
grid_visibility = off &
size_of_icons = 50.0 &
spacing_for_grid = 1000.0
!
!------------------------------ Adams/View Model ------------------------------!
!
!
model create &
model_name = model_1
!
view erase
!
!--------------------------------- Materials ----------------------------------!
!
!
material create &
material_name = .model_1.steel &
adams_id = 1 &
youngs_modulus = 2.07E+005 &
poissons_ratio = 0.29 &
density = 7.801E-006
!
!-------------------------------- Rigid Parts ---------------------------------!
!
! Create parts and their dependent markers and graphics
!
!----------------------------------- ground -----------------------------------!
!
!
! ****** Ground Part ******
!
defaults model &
part_name = ground
!
defaults coordinate_system &
default_coordinate_system = .model_1.ground
!
! ****** Markers for current part ******
!
marker create &
marker_name = .model_1.ground.MARKER_3 &
adams_id = 3 &
location = 0.0, 0.0, 0.0 &
orientation = 0.0d, 0.0d, 0.0d
!
! ****** Floating Markers for current part ******
!
floating_marker create &
floating_marker_name = .model_1.ground.FMARKER_4 &
adams_id = 4
!
part create rigid_body mass_properties &
part_name = .model_1.ground &
material_type = .model_1.steel
!
part attributes &
part_name = .model_1.ground &
name_visibility = off
!
!----------------------------------- PART_2 -----------------------------------!
!
!
defaults coordinate_system &
default_coordinate_system = .model_1.ground
!
part create rigid_body name_and_position &
part_name = .model_1.PART_2 &
adams_id = 2 &
location = 0.0, 0.0, 0.0 &
orientation = 0.0d, 0.0d, 0.0d
!
part create rigid_body initial_velocity &
part_name = .model_1.PART_2 &
vx = 1.0E+004 &
vy = 1.0E+004 &
vz = 1.0E+004
!
defaults coordinate_system &
default_coordinate_system = .model_1.PART_2
!
! ****** Markers for current part ******
!
marker create &
marker_name = .model_1.PART_2.MARKER_1 &
adams_id = 1 &
location = 0.0, 0.0, 0.0 &
orientation = 0.0d, 0.0d, 0.0d
!
marker create &
marker_name = .model_1.PART_2.cm &
adams_id = 5 &
location = 0.0, 0.0, 0.0 &
orientation = 0.0d, 0.0d, 0.0d
!
marker create &
marker_name = .model_1.PART_2.MARKER_2 &
adams_id = 2 &
location = 0.0, 0.0, 0.0 &
orientation = 0.0d, 0.0d, 0.0d
!
part create rigid_body mass_properties &
part_name = .model_1.PART_2 &
material_type = .model_1.steel
!
! ****** Graphics for current part ******
!
geometry create shape ellipsoid &
ellipsoid_name = .model_1.PART_2.ELLIPSOID_1 &
adams_id = 2 &
center_marker = .model_1.PART_2.MARKER_1 &
x_scale_factor = 1486.6068747318 &
y_scale_factor = 1486.6068747318 &
z_scale_factor = 1486.6068747318
!
part attributes &
part_name = .model_1.PART_2 &
color = GREEN &
name_visibility = off
!
!----------------------------------- Forces -----------------------------------!
!
!
force create direct force_vector &
force_vector_name = .model_1.VFORCE_1 &
adams_id = 1 &
i_marker_name = .model_1.PART_2.MARKER_2 &
j_floating_marker_name = .model_1.ground.FMARKER_4 &
ref_marker_name = .model_1.ground.MARKER_3 &
x_force_function = "" &
y_force_function = "" &
z_force_function = ""
!
!------------------------------ Dynamic Graphics ------------------------------!
!
!
defaults coordinate_system &
default_coordinate_system = .model_1.ground
!
geometry create shape force &
force_name = .model_1.VFORCE_1_force_graphic_1 &
adams_id = 1 &
force_element_name = .model_1.VFORCE_1 &
applied_at_marker_name = .model_1.PART_2.MARKER_2
!
!---------------------------------- Accgrav -----------------------------------!
!
!
force create body gravitational &
gravity_field_name = gravity &
x_component_gravity = 0.0 &
y_component_gravity = -9806.65 &
z_component_gravity = 0.0
!
!----------------------------- Analysis settings ------------------------------!
!
!
!---------------------------------- Measures ----------------------------------!
!
!
measure create object &
measure_name = .model_1.VFORCE_1_MEA_1 &
from_first = yes &
object = .model_1.VFORCE_1 &
characteristic = element_force &
component = x_component
!
data_element attributes &
data_element_name = .model_1.VFORCE_1_MEA_1 &
color = WHITE
!
measure create object &
measure_name = .model_1.VFORCE_1_MEA_2 &
from_first = yes &
object = .model_1.VFORCE_1 &
characteristic = element_force &
component = y_component
!
data_element attributes &
data_element_name = .model_1.VFORCE_1_MEA_2 &
color = WHITE
!
measure create object &
measure_name = .model_1.VFORCE_1_MEA_3 &
from_first = yes &
object = .model_1.VFORCE_1 &
characteristic = element_force &
component = z_component
!
data_element attributes &
data_element_name = .model_1.VFORCE_1_MEA_3 &
color = WHITE
!
measure create object &
measure_name = .model_1.PART_2_MEA_1 &
from_first = yes &
object = .model_1.PART_2 &
characteristic = cm_velocity &
component = x_component
!
data_element attributes &
data_element_name = .model_1.PART_2_MEA_1 &
color = WHITE
!
measure create object &
measure_name = .model_1.PART_2_MEA_2 &
from_first = yes &
object = .model_1.PART_2 &
characteristic = cm_velocity &
component = y_component
!
data_element attributes &
data_element_name = .model_1.PART_2_MEA_2 &
color = WHITE
!
measure create object &
measure_name = .model_1.PART_2_MEA_3 &
from_first = yes &
object = .model_1.PART_2 &
characteristic = cm_velocity &
component = z_component
!
data_element attributes &
data_element_name = .model_1.PART_2_MEA_3 &
color = WHITE
!
!---------------------------- ADAMS/View Variables ----------------------------!
!
!
variable create &
variable_name = .model_1.a &
units = "no_units" &
use_allowed_values = no &
real_value = -3.854
!
!----------------------------- Simulation Scripts -----------------------------!
!
!
simulation script create &
sim_script_name = .model_1.Last_Sim &
commands = &
"simulation single_run transient type=auto_select end_time=5.0 number_of_steps=50 model_name=.model_1 initial_static=no"
!
!---------------------------- Function definitions ----------------------------!
!
!
force modify direct force_vector &
force_vector_name = .model_1.VFORCE_1 &
x_force_function = ".model_1.a*(VX(.model_1.PART_2.MARKER_2,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3)/1000)**2*if(VX(.model_1.PART_2.MARKER_2,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3)-0:-1,0,1)" &
y_force_function = ".model_1.a*(Vy(.model_1.PART_2.MARKER_2,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3)/1000)**2*if(Vy(.model_1.PART_2.MARKER_2,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3)-0:-1,0,1)" &
z_force_function = ".model_1.a*(Vz(.model_1.PART_2.MARKER_2,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3)/1000)**2*if(Vz(.model_1.PART_2.MARKER_2,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3,.model_1.ground.MARKER_3)-0:-1,0,1)"
!
!--------------------------- Expression definitions ---------------------------!
!
!
defaults coordinate_system &
default_coordinate_system = ground
!
material modify &
material_name = .model_1.steel &
youngs_modulus = (2.07E+011(Newton/meter**2)) &
density = (7801.0(kg/meter**3))
!
geometry modify shape ellipsoid &
ellipsoid_name = .model_1.PART_2.ELLIPSOID_1 &
x_scale_factor = (2 * 743.3034373659mm) &
y_scale_factor = (2 * 743.3034373659mm) &
z_scale_factor = (2 * 743.3034373659mm)
!
geometry modify shape force &
force_name = .model_1.VFORCE_1_force_graphic_1 &
applied_at_marker_name = (.model_1.VFORCE_1.i)
!
model display &
model_name = model_1 |
|