150 likes | 330 Views
WORKSHOP 8 MSC.EASY5 & ADAMS/Insight. WORKSHOP 8 – MSC.EASY5. Problem statement Tune the hydraulic valve positioning model to minimize the accumulated position error. Ensure that pressures in the actuator don’t exceed the rated specifications for the component. WORKSHOP 8 – MSC.EASY5.
E N D
WORKSHOP 8 MSC.EASY5 & ADAMS/Insight
WORKSHOP 8 – MSC.EASY5 • Problem statement Tune the hydraulic valve positioning model to minimize the accumulated position error. Ensure that pressures in the actuator don’t exceed the rated specifications for the component.
WORKSHOP 8 – MSC.EASY5 • Getting started First, you will start MSC.EASY5 and import the model. • To start MSC.EASY5: • Start an EASY5 command shell. • Launch EASY5 using the command: easy5x • Load the model file named Hydraulic_Act.0.ezmf. This is a simple hydraulic model that controls a positioning component in a larger model. • Specify features in use: Help -> License Features… Select the hc library feature for checkout.
WORKSHOP 8 – MSC.EASY5 • Build the model, run an analysis: • Build the model in EASY5: Build -> Create Executable • Open the default analysis in the model: Analysis -> Open current analysis… • Check the simulation parameters under the General tab of the analysis. Ensure that: • Stop Time = 10 • Time Increment = 0.01 • Run the current analysis: • Either press the ‘start’ button or do Analysis -> Execute from the menus. • When the simulation completes, the plotting window appears.
WORKSHOP 8 – MSC.EASY5 • Inspect results, change parameters and re-run: • Plot the AccumulatedPositionError value. This is an indicator of system performance. What is the final value of this variable? (hold the middle mouse button down over a plot to query plot values): ___________________________________________ • Alter the maximum pressure in the circuit: • Double-click the VR (Pressure Relief Valve) component. • Increase the ValveCrackPress to be 120. • Re-run the last simulation and inspect the accumulated error. Did the error increase or decrease with greater system pressure? Increase / Decrease (circle one)
WORKSHOP 8 – MSC.EASY5 • Identify parameters to study: • The following list contains parameters that may influence the system response. Examine the various blocks in the EASY5 model and try to determine the 2 (or 3)-letter abbreviation of the block its parameter name corresponding to each description below. The first has been done for you: • Extend piston area of the actuator component: AC2 -> piston_area_extend • Displacement per revolution of the pump: _____________________ • Actuator piston mass: ___________________ • Relief valve cracking pressure: _________________ • Controller proportional gain constant: _______________
WORKSHOP 8 – MSC.EASY5 • Identify outcomes of interest: • Both the accumulated position error and the maximum pressure seen in the actuator are of interest. Browse through the various blocks in the model and identify the block names and parameters that capture these two quantities: • Accumulated position error: IN -> AccumulatedPositionError • Maximum extend pressure in the actuator: _____________________ (Hint: It’s not in the actuator block, but is connected to the actuator block) • Mean power in the pump: _____________________ (Hint: Same as above: it’s not in the pump block)
WORKSHOP 8 – MSC.EASY5 • Export model, load into ADAMS/Insight: • Creating information about the EASY5 model for ADAMS/Insight is a three-step process: • Build an EMX representation of the model in EASY5: Build -> Export Model As -> MAT EMX Function… Since no modifiers are being used, simply accept the default parameters here. • Document the EASY5 model: File -> Document Model -> Create HTML This creates model information needed by ADAMS/Insight. • Start ADAMS/Insight and import the EASY5 files: • Launch ADAMS/Insight from a new EASY5 shell (File -> Open Command Shell): adams05r2 ainsight • Create a new, blank experiment (File -> New) • Attach the EASY5 simulation to this experiment: Simulaton -> Add Simulation -> MSC EASY5 Select the latest EASY5 model file.
WORKSHOP 8 – MSC.EASY5 • Promote the Factors of interest: • Within ADAMS/Insight, navigate the treeview list of Factors and promote the following to be inclusion candidates: • Piston areas and mass of the actuator component: • AC2 -> piston_area_extend_AC2 • AC2 -> piston_area_retract_AC2 • AC2 -> PistonMass_AC2 • Displacement/revolution of the pump: • PD -> DispPerRev_PD • Relief valve cracking pressure: • VR -> ValveCrackPress_VR • Controller gain constants: • GB -> GKI_GB • GB -> GKP_GB • Note that all Factors, by default, have a range of +/- 10% from the nominal value. The defaults will be used for this experiment.
WORKSHOP 8 – MSC.EASY5 • Promote the Responses of interest: • Within ADAMS/Insight, navigate the treeview list of Responses and promote the following to be inclusions: • Accumulated position error: IN -> AccumulatedPositionError • Maximum pressure in Actuator: ST2 -> MaxActuatorPressure_ST2 • Mean pump power: ST -> MeanPumpPower_ST • ADAMS/Insight uses the last value of the state to define the Response value. Entities such as the Statistics blocks (used above) let you capture other possibly desirable quantities. Custom post-processing can be done via user-defined Fortran blocks, as well.
WORKSHOP 8 – MSC.EASY5 • Perform a screening study in ADAMS/Insight: • To determine which Factors most influence the position error, run a simple screening DOE study with the following specification: • Strategy: DOE Screening • Model: Interactions • Design Type: Full Factorial • Before simulating the trials, look at the MSC.EASY5 entry under the Simulation node in the left-hand treeview. Ensure that the matCommand script has an end time (TMAX) of 10.0 seconds. • Simulate the trials then fit the results in Insight.
WORKSHOP 8 – MSC.EASY5 • Investigating the results: • Create an HTML representation of the data by clicking the ‘Export to web..’ button. • Open the web page that is created in the local directory. • In the upper window that displays Factor values, check the box entitled ‘Effects’ to see the Pareto diagrams for the Responses. • Considering the Pareto diagrams for the AccumulatedPositionError and MaxActuatorPressure Responses. Which two Factors do not appear to affect either Response significantly: • ________________________________ • ________________________________
WORKSHOP 8 – MSC.EASY5 • Fit a Response Surface, Optimize: • Save your work as ‘screening_study.xml’ for reference. • Delete the current Design Space by selecting it in the treeview and hitting the delete button in the toolbar. • Reduce the list of Factors to three, including just the piston extend/retract areas and the valve cracking pressure. • Create a DOE Response Surface experiment of quadratic order and type Full Factorial. • Run the trials for this new experiment, then fit the results in Insight. • Use the Optimization functionality in Insight to determine the Factors needed to: • Minimize the position error • Have the maximum actuator pressure be 100 psi • Ignore the mean pump power Response