Utilities (3d)¶
rollover.three_d.utils.contact¶
Module to setup the rail-wheel contact
-
rollover.three_d.utils.contact.setup(the_model, contact_stiffness=1000000.0, friction_coefficient=None, elastic_slip_fraction=0.005)[source]¶ Add a contact property and a surface-to-surface contact in the_model according to the given settings.
- Parameters
the_model (Model object (Abaqus)) – The model to which the contact settings should be applied
contact_stiffness (float) – The stiffness used in the normal penalty formulation.
friction_coefficient (float) – The friction coefficient for the tangential behavior. If none, no tangential behavior will be defined and the contact will be frictionless .
elastic_slip_fraction (float) – The allowed elastic tangential slip. This will adjust the penalty stiffness for the tangential contact.
- Returns
None
- Return type
None
rollover.three_d.utils.fil_output¶
This module is used to control the output to the Abaqus result (.fil) file
Note
Uses direct editing of input and should be called after all cae options have been set.
-
rollover.three_d.utils.fil_output.add(the_model, num_cycles)[source]¶ Add .fil output to input file for each rolling step. For the first, add node coordinates and displacements. For the remaining, add only displacements. If rail reference point is used, add node coord and displacements If rail substructure is used, the instance set names change…
- Parameters
the_model (Model object (Abaqus)) – The model to which the output is to be added
num_cycles (int) – Number of rollover cycles to simulate
-
rollover.three_d.utils.fil_output.add_to_step(kwb, varstr, step_name, rail_rp=None, use_substr=False)[source]¶ Add output specified to given step.
- Parameters
kwb (KeywordBlock object (Abaqus)) – The keyword block that can be used to edit input file directly.
varstr (str) – The string specifying which variables to add to output
step_name (str) – The name of the step to which output should be added/modified
rail_rp (str) – The name of the rail reference point set
use_substr (bool) – Is a rail substructure used?
-
rollover.three_d.utils.fil_output.get_node_file_output_str(nset, varstr, frequency=99999999)[source]¶ Get the string to add to the input file.
- Parameters
nset (str) – Name of node set from which output should be output
varstr (str) – comma separated list of variables to output
frequency (int) – How often to write output (increments)
- Returns
The string to add
- Return type
str
rollover.three_d.utils.loading¶
rollover.three_d.utils.mesh_tools¶
rollover.three_d.utils.odb_output¶
This module is used to control the output to the Abaqus result (.fil) file
Note
Uses direct editing of input and should be called after all cae options have been set.
-
rollover.three_d.utils.odb_output.add(the_model, field_output_requests, num_cycles)[source]¶ Add the user specified field output requests. Default outputs are deleted.
- Parameters
the_model (Model object (Abaqus)) – The model to which the output requests will be added
field_output_requests (dict) –
A dictionary with field output request specifications. Each field should be a dictionary containing the following fields:
- set: Which set the output applies
to. Refers to sets in the rail instance, except special sets:
’FULL_MODEL’: The entire model
’WHEEL_RP’: Wheel ctrl point
- var: List of variables to save,
e.g. (‘U’, ‘S’)
freq: How often to output during step. I.e. every incr=1. Set to -1 for only last increment.
cycle: How often to output cycles, i.e. 1 implies every cycle, 10 implies every 10th cycle, etc.
- Returns
None
- Return type
None
rollover.three_d.utils.sketch_tools¶
Tools to work with sketches
-
rollover.three_d.utils.sketch_tools.import_sketch(the_model, sketch_profile, name='profile')[source]¶ Import the sketch sketch_profile and add it to the_model.
- Parameters
the_model (Model (Abaqus object)) – The model to which the sketch will be added
sketch_profile (str) – Path to an Abaqus sketch profile saved as .sat file (acis)
name (str) – Name of the created sketch, defaults to ‘profile’
- Returns
The added sketch
- Return type
ConstrainedSketch (Abaqus object)