def _validate_restitution_coefficient(self, value):
     value = meta_validation.cast_data_type(value,
                                            'RESTITUTION_COEFFICIENT')
     meta_validation.check_valid_shape(value, [1],
                                       'RESTITUTION_COEFFICIENT')
     meta_validation.validate_cuba_keyword(value, 'RESTITUTION_COEFFICIENT')
     return value
 def _validate_cohesion_energy_density(self, value):
     value = meta_validation.cast_data_type(value,
                                            'COHESION_ENERGY_DENSITY')
     meta_validation.check_valid_shape(value, [1],
                                       'COHESION_ENERGY_DENSITY')
     meta_validation.validate_cuba_keyword(value, 'COHESION_ENERGY_DENSITY')
     return value
示例#3
0
 def _validate_rheology_model(self, value):
     value = meta_validation.cast_data_type(value, 'RHEOLOGY_MODEL')
     meta_validation.check_valid_shape(value, [1], 'RHEOLOGY_MODEL')
     meta_validation.validate_cuba_keyword(value, 'RHEOLOGY_MODEL')
     return value
示例#4
0
 def _validate_description(self, value):
     value = meta_validation.cast_data_type(value, 'DESCRIPTION')
     meta_validation.check_valid_shape(value, [1], 'DESCRIPTION')
     meta_validation.validate_cuba_keyword(value, 'DESCRIPTION')
     return value
示例#5
0
 def _validate_primitive_cell(self, value):
     value = meta_validation.cast_data_type(value, 'PRIMITIVE_CELL')
     meta_validation.check_valid_shape(value, [1], 'PRIMITIVE_CELL')
     meta_validation.validate_cuba_keyword(value, 'PRIMITIVE_CELL')
     return value
 def _validate_initial_viscosity(self, value):
     value = meta_validation.cast_data_type(value, 'INITIAL_VISCOSITY')
     meta_validation.check_valid_shape(value, [1], 'INITIAL_VISCOSITY')
     meta_validation.validate_cuba_keyword(value, 'INITIAL_VISCOSITY')
     return value
 def _validate_linear_constant(self, value):
     value = meta_validation.cast_data_type(value, 'LINEAR_CONSTANT')
     meta_validation.check_valid_shape(value, [1], 'LINEAR_CONSTANT')
     meta_validation.validate_cuba_keyword(value, 'LINEAR_CONSTANT')
     return value
 def _validate_physics_equation(self, value):
     value = meta_validation.cast_data_type(value, 'PHYSICS_EQUATION')
     meta_validation.check_valid_shape(value, [1], 'PHYSICS_EQUATION')
     meta_validation.validate_cuba_keyword(value, 'PHYSICS_EQUATION')
     return value
示例#9
0
 def _validate_maximum_viscosity(self, value):
     value = meta_validation.cast_data_type(value, 'MAXIMUM_VISCOSITY')
     meta_validation.check_valid_shape(value, [1], 'MAXIMUM_VISCOSITY')
     meta_validation.validate_cuba_keyword(value, 'MAXIMUM_VISCOSITY')
     return value
示例#10
0
 def _validate_version(self, value):
     value = meta_validation.cast_data_type(value, 'VERSION')
     meta_validation.check_valid_shape(value, [1], 'VERSION')
     meta_validation.validate_cuba_keyword(value, 'VERSION')
     return value
示例#11
0
 def _validate_gravity_model(self, value):
     value = meta_validation.cast_data_type(value, 'GRAVITY_MODEL')
     meta_validation.check_valid_shape(value, [1], 'GRAVITY_MODEL')
     meta_validation.validate_cuba_keyword(value, 'GRAVITY_MODEL')
     return value
示例#12
0
 def _validate_multiphase_model(self, value):
     value = meta_validation.cast_data_type(value, 'MULTIPHASE_MODEL')
     meta_validation.check_valid_shape(value, [1], 'MULTIPHASE_MODEL')
     meta_validation.validate_cuba_keyword(value, 'MULTIPHASE_MODEL')
     return value
示例#13
0
 def _validate_electrostatic_model(self, value):
     value = meta_validation.cast_data_type(value, 'ELECTROSTATIC_MODEL')
     meta_validation.check_valid_shape(value, [1], 'ELECTROSTATIC_MODEL')
     meta_validation.validate_cuba_keyword(value, 'ELECTROSTATIC_MODEL')
     return value
示例#14
0
 def _validate_compressibility_model(self, value):
     value = meta_validation.cast_data_type(value, 'COMPRESSIBILITY_MODEL')
     meta_validation.check_valid_shape(value, [1], 'COMPRESSIBILITY_MODEL')
     meta_validation.validate_cuba_keyword(value, 'COMPRESSIBILITY_MODEL')
     return value
示例#15
0
 def _validate_thermal_model(self, value):
     value = meta_validation.cast_data_type(value, 'THERMAL_MODEL')
     meta_validation.check_valid_shape(value, [1], 'THERMAL_MODEL')
     meta_validation.validate_cuba_keyword(value, 'THERMAL_MODEL')
     return value
示例#16
0
 def _validate_dielectric_constant(self, value):
     value = meta_validation.cast_data_type(value, 'DIELECTRIC_CONSTANT')
     meta_validation.check_valid_shape(value, [1], 'DIELECTRIC_CONSTANT')
     meta_validation.validate_cuba_keyword(value, 'DIELECTRIC_CONSTANT')
     return value
示例#17
0
 def _validate_material(self, value):
     value = meta_validation.cast_data_type(value, 'MATERIAL')
     meta_validation.check_valid_shape(value, [1], 'MATERIAL')
     meta_validation.validate_cuba_keyword(value, 'MATERIAL')
     return value
示例#18
0
 def _validate_acceleration(self, value):
     value = meta_validation.cast_data_type(value, 'ACCELERATION')
     meta_validation.check_valid_shape(value, [1], 'ACCELERATION')
     meta_validation.validate_cuba_keyword(value, 'ACCELERATION')
     return value
 def _validate_velocity(self, value):
     value = meta_validation.cast_data_type(value, 'VELOCITY')
     meta_validation.check_valid_shape(value, [1], 'VELOCITY')
     meta_validation.validate_cuba_keyword(value, 'VELOCITY')
     return value
示例#20
0
 def _validate_patch(self, value):
     value = meta_validation.cast_data_type(value, 'PATCH')
     meta_validation.check_valid_shape(value, [1], 'PATCH')
     meta_validation.validate_cuba_keyword(value, 'PATCH')
     return value
 def _validate_power_law_index(self, value):
     value = meta_validation.cast_data_type(value, 'POWER_LAW_INDEX')
     meta_validation.check_valid_shape(value, [1], 'POWER_LAW_INDEX')
     meta_validation.validate_cuba_keyword(value, 'POWER_LAW_INDEX')
     return value
示例#22
0
 def _validate_major(self, value):
     value = meta_validation.cast_data_type(value, 'MAJOR')
     meta_validation.check_valid_shape(value, [1], 'MAJOR')
     meta_validation.validate_cuba_keyword(value, 'MAJOR')
     return value
 def _validate_relaxation_time(self, value):
     value = meta_validation.cast_data_type(value, 'RELAXATION_TIME')
     meta_validation.check_valid_shape(value, [1], 'RELAXATION_TIME')
     meta_validation.validate_cuba_keyword(value, 'RELAXATION_TIME')
     return value
示例#24
0
 def _validate_full(self, value):
     value = meta_validation.cast_data_type(value, 'FULL')
     meta_validation.check_valid_shape(value, [1], 'FULL')
     meta_validation.validate_cuba_keyword(value, 'FULL')
     return value
示例#25
0
 def _validate_origin(self, value):
     value = meta_validation.cast_data_type(value, 'ORIGIN')
     meta_validation.check_valid_shape(value, [1], 'ORIGIN')
     meta_validation.validate_cuba_keyword(value, 'ORIGIN')
     return value
示例#26
0
 def _validate_volume_fraction(self, value):
     value = meta_validation.cast_data_type(value, 'VOLUME_FRACTION')
     meta_validation.check_valid_shape(value, [1], 'VOLUME_FRACTION')
     meta_validation.validate_cuba_keyword(value, 'VOLUME_FRACTION')
     return value
示例#27
0
 def _validate_position(self, value):
     value = meta_validation.cast_data_type(value, 'POSITION')
     meta_validation.check_valid_shape(value, [1], 'POSITION')
     meta_validation.validate_cuba_keyword(value, 'POSITION')
     return value
示例#28
0
 def _validate_cutoff_distance(self, value):
     value = meta_validation.cast_data_type(value, 'CUTOFF_DISTANCE')
     meta_validation.check_valid_shape(value, [1], 'CUTOFF_DISTANCE')
     meta_validation.validate_cuba_keyword(value, 'CUTOFF_DISTANCE')
     return value
示例#29
0
 def _validate_name(self, value):
     value = meta_validation.cast_data_type(value, 'NAME')
     meta_validation.check_valid_shape(value, [1], 'NAME')
     meta_validation.validate_cuba_keyword(value, 'NAME')
     return value
示例#30
0
 def _validate_turbulence_model(self, value):
     value = meta_validation.cast_data_type(value, 'TURBULENCE_MODEL')
     meta_validation.check_valid_shape(value, [1], 'TURBULENCE_MODEL')
     meta_validation.validate_cuba_keyword(value, 'TURBULENCE_MODEL')
     return value