Connecting Microsoft Excel as a solver to optiSLang Tutorial: Using MS Excel as a solver to fit true stress / true strain curves of metallic materials.

Slides:



Advertisements
Similar presentations
BroilerOpt A Broiler Optimization Program Getting Started III Matrix and Diet Transfer From Brill System.
Advertisements

Tutorial 1: Sensitivity analysis of an analytical function
Example 2.2 Estimating the Relationship between Price and Demand.
Exercise 7.5 (p. 343) Consider the hotel occupancy data in Table 6.4 of Chapter 6 (p. 297)
Applied Econometrics Second edition
UNLOCKING THE SECRETS HIDDEN IN YOUR DATA Part 3 Data Analysis.
McGraw-Hill/Irwin ©2008 The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T4 PROBLEM SOLVING USING EXCEL Goal Seek, Solver & Pivot Tables.
Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel 2010: Chapter1.
LAMS Legal Action Management System Seminar 1 SKIP TO 1.Overview of LAMS 2.The Index_Active.xls11.Small Claims Court PLAINTIFF’S CLAIM:12.Plaintiff No.112.Plaintiff.
Tutorial 10: Performing What-If Analyses
optiSLang - ANSYS Workbench Interface (optiPlug)
Tutorial 2, Part 1: Optimization of a damped oscillator.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Tutorial 2 SSMA Cee in Compression: 600S F y = 50ksi Objective To model a typical Cee stud in compression and determine the elastic critical local.
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
Assignment 3 Excel Tutorial IS for Management2 Content –Accurate –Relevant –Complete –Concise Time –Timely –Frequent (enough) Form –Easy to read –Appropriately.
Spreadsheets With Microsoft Excel ® as an example.
Using Excel for Data Analysis in CHM 161 Monique Wilhelm.
L13_1 Microsoft Excel - Building a Worksheet * Excel * Starting Excel and the Excel Window * Entering Text and Numbers * Calculating a Sum * Using the.
Formula Auditing, Data Validation, and Complex Problem Solving
Tensile Testing – Data Sheet Please fill in your name, group members, data and instructor’s name Mark gage length indents using the hammer Measure the.
By Hrishikesh Gadre Session I Introduction to EES Department of Mechanical Engineering Louisiana State University Engineering Equation.
Graphing with Excel: Graphing Made Easy Mac 2008 Version.
ADVANCED MICROSOFT POWERPOINT Lesson 6 – Creating Tables and Charts
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
Sensitivity Analysis, Multidisciplinary Optimization, Robustness Evaluation, and Robust Design Optimization with optiSLang 3.2.
Introduction to Excel, Word and Powerpoint Developing Valuable Technology Skills! Shawn Koppenhoefer Training in Research in Reproductive Health/Sexual.
11 10/10/2005 BAE Spreadsheet Macros (Visual Basic for Applications) Slides to accompany an in-class demo of spreadsheet technique: Macro Programming.
Dynamic Software and Engineering GmbH, Weimar, Germany
Part 5 Parameter Identification (Model Calibration/Updating)
1 Performing Spreadsheet What-If Analysis Applications of Spreadsheets.
Engineering Fundamentals Decision Matrix Spreadsheet Tutorial 1.
Excel Project 2 Formulas, Functions, and Formatting.
Tutorial: Robustness evaluation using optiSLang, SoS and LS-DYNA Henrick Nilsson, DYNARDO GmbH
Time series Model assessment. Tourist arrivals to NZ Period is quarterly.
WFM 6311: Climate Risk Management © Dr. Akm Saiful Islam WFM 6311: Climate Change Risk Management Akm Saiful Islam Lecture-7:Extereme Climate Indicators.
9.0 New Features Min. Life for a Titanium Turbine Blade Workshop 9 Robust Design – DesignXplorer.
How do I export the Address Book to Excel? The first step is to go to "Address Book Report" under Admin Only menu Choose the fields you want. note that.
Spreadsheet Models for Managers: Session 14 14/1 Copyright © Richard Brenner Spreadsheet Models for Managers Session 14 Using Macros II Function.
Chapter 3: Referencing and Names Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
1 Basic Computing Skills Dr Wenwu Wang Centre for Vision Speech and Signal Processing Department of Electronic Engineering
Radix Sort and Hash-Join for Vector Computers Ripal Nathuji 6.893: Advanced VLSI Computer Architecture 10/12/00.
Microsoft Excel 2010 Chapter 2 Formulas, Functions, and Formatting.
Tutorial 3, Part 1: Optimization of a linear truss structure
How To Use Google Spreadsheet. 1. Create a GMail account if you do not already have one To create a GMail account: 1. Go to mail.google.commail.google.com.
CUFSM Overview Main Input Properties Post Compare New: constrained finite strip (cFSM) functionsonstrained finite strip CUFSM 3.12.
Using Microsoft® Excel This presentation is designed for Chapter 1, Section 1.2.
Excel Spreadsheets Formatting and Functions ICS100 – Spring 2007 D. Pai.
Chapter 3: Referencing and Names Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
WS1-1 ADM730, Workshop 1, September 2005 Copyright  2005 MSC.Software Corporation WORKSHOP 1 INTRODUCTION Open Retracted - Bad Retracted - Good.
Tutorial 2, Part 2: Calibration of a damped oscillator.
You’ll Make a spreadsheet which will be like a Mad Libs Game. These Are The Directions.
13-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Chapter 13 Solver.out File and CCL Introduction to.
Instructions for transferring names and addresses from a MS WORD table (previously created for printing address labels) to MS Excel for upload to SendOutCards.
Excel Chapter 1 Creating a Worksheet and an Embedded Chart
SECTION 6 DESIGN STUDY. What’s in this section: –Design Variables –Design Studies Overview –Specifying an Objective –Execution Display Settings –Output.
GO! with Microsoft Office 2016
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Solver & Optimization Problems
Analyzing Data with Excel
Using the Excel Creation Template to Create a Variable Parameter Problem (Macro Enabled “Alpha 1.4.2”) Getting started – Example 1 Note – You should be.
INSTRUCTIONS TO COMPLETE 2017 POOL RE MEMBER DATA RETURN
Advanced Microsoft Excel
Microsoft Excel 101.
Introduction to Computer Applications West Virginia University
Getting started – Example 1
Intro to Excel CSCI-150.
Presentation transcript:

Connecting Microsoft Excel as a solver to optiSLang Tutorial: Using MS Excel as a solver to fit true stress / true strain curves of metallic materials

2 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Background Material Parameters can be determined in practical tensile tests. The result of these tests is a true stress / true strain curve of the material.

3 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Background To perform FE-Analyses it is often necessary to define material properties that are fittet to a tensile test measurement. As a result of the measurement, you get the data points of a σ-ε-plot. You can fit a generated curve according to the Gosh-Equation: σ Y (ε p ) = k (ε 0 + ε p ) n – p At first, you have to determine the start values of the parameters k,n,p and ε 0. These parameters can be taken out of the given reference curve.

4 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Take a look at a given reference curve You get a reference curve usually as an Excel sheet. To determine the start values of the gosh parameters, you can take out: k = the Value of ε P = 1 calculate n = ln(σ Y /k) / ln(ε P ) Notice: to get a good result, take an average of n between ε P = 0 and ε P = 0.2! and finally ε 0 = (σ Y /k) 1/n Set the parameter p = 0 Epsilon ε P Sigma σ Y

5 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Calculating the start value of n Sum up the desired values for „n“ Divide it by the number of considered values. This leads to your first approximation of „n“

6 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Generating a first approximation curve Generate the input section with the four parameters Create the new true stress true strain curve with the Gosh- Equation and set the reference of the values for k,n,p, ε 0 to the input section! To check the accurance of the fitting, create a new column: the quadratic error: (σ approx. – σ Y ) 2 Finally sum up the quadratic errors and calculate an average value

7 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Preparing the worksheet for optiSLang Input Variables are read in in rows Output Variables are read out in columns The used macro needs some references. So you have to mark the first input variable als „inputParams“, the first output variable as „outputParams“ and the second output variable as „outputParams2“

8 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Working with the macro To work with the extraction macro, you have to allow using macros in your Excel settings! Start the MS Visual Basic-Editor to have a look at the macro

9 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang The macro In the macro you find: The input file names The output file names The Names of the references, that you have to set in Excel (see sheet 7) Some settings The extraction routine (as shown beside) Note: The macro is pre-defined for one input file and two output files for each one column. If you want to extract more, please adapt the macro to your needs.

10 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Creating the input deck Close and save your completed Excel Worksheet! Define an input.txt where you define the input variables: Open the given jscript file and modify the name of your worksheet! nε0kpnε0kp

11 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Start the reference run You start the calculation and extraction of the both outputs in the following way: Write a „start.bat“ file with the command line: cscript G:\Projekte\Excel_Solver\test\kurve_optislang.js //B  modify this according to your system  Make sure that Java-Script is not deactivated on your computer! You‘ll get now the following structure in your directory:

12 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Create the optiSLang project Create a new optiSLang project in your working directory

13 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Parametrize the input variables Start a new parametrization of the 4 input variables n, ε 0, k, p Fill in the lower and upper bounds and the formats as shown below

14 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Parametrize the outputs First open the output2.txt to parametrize the average quadratic error (last value at the end of the file) as an output variable. You need at least one output variable to finish a parametrization.

15 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Preparing the signal parameters The fitting of the curves will be done with signals in optiSLang. Therefore, you have to create the reference curve in two text files by copying the values from the given excel sheet. The textfile „epsilon.txt“ is also needed to get the values for ε Y !

16 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Creating signal parameters At first, you have to define the block markers. These markers represent the array of values that you allocate to a vector. Create the markers as shown below For the output2.txt, you have to define an end in the marker, because after the single values, the sum and average of the quadratic error follows and this should not be extracted here!

17 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Creating signal parameters Repeat this for the additional textfiles sigma.txt and epsilon.txt Notice: Here you have to set the start line as „2“ because the values begin in row 2. Now you have to define the parameter vectors

18 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Creating parameter vectors Mark the first value of the output files and add them as vectors Set the reference to the output-file-marker and insert a reasonable name (examples are shown below).

19 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Defining the reference vectors Repeat this for all the desired output vectors. The Sigma.txt contains the reference value of σ Y. The vector in Epsilon.txt has to be defined twice – one of them is used as a reference vector. To make a vector a reference vector, you have to set them as constant: Double-click on the vector element and mark it as constant

20 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Defining signal objects After you have now defined all the needed vectors, you can now create the signal objects to start the analysis. Do this for the Sigma_Epsilon, the quadratic error and the reference curve. Mark the reference curve as constant so that it is treated as the reference by optiSLang. Save the parametrization and close it.

21 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Design of Experiments To get an overview of the variation space, it can be useful to perform a sensitivity study at first. Here you can see the output variation and wheather your target value is located inside of the variation space. For the DoE, first add two lines to your start.bat file: copy "G:\Projekte\Referenzkurve\optislang\sigma.txt". copy "G:\Projekte\Referenzkurve\optislang\epsilon.txt". Modify the path when it differs from your settings! Use the predefined problem specification Use the start.bat as starting script Calculate about 100 designs – it doesn‘t take long (~ 1.6 s /design)

22 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang DoE Postprocessing You see that the reference curve is within the variation space. So it shall be possible to fit the four Gosh-parameters for an optimal fitting of the calculated curve.

23 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Defining the objective in optiSLang To start a curve fitting, you have to define an objective in optiSLang. Just re-open the parametrization to add a signal function at first Choose then as function the SIG_DIF_EUCLID_SLOT function This functions determines the euclidian norm between two curves in a defined slot. The slot is chosen because for large strain values (ε > 0.4), the curve fitting has not to be verry accurate.

24 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Defining the objective in optiSLang Enter a reasonable name for the signal function. This name will be used for the objective. Define the objective function just by inserting the signal function name. The effect of the optimization is that the value of this function will be minimized. As an alternative, you may use the integral-difference function

25 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Starting an optimization run (ARSM) Because we have only 4 parameters, a ARSM-Optimization would be a fast method to create a best design. Define a new ARSM run with the modified problem-specification file and the start script. To scan a wider design space, set the start range up to 75%. To avoid endless calculations, set a maximum ARSM iteration number of 75.

26 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Postprocessing ARSM After 75 Iterations, it was possible to achieve an excellent curve fitting. Get the design values for the Gosh- equation as a result See the very small difference between the curves (Kurvenfitting)

27 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Signal data of the ARSM The best design is hardly to distinguish from the reference curve.

28 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Excel Sheet Comparision of the two curves in MS Excel – See the accurate fitting

29 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Excel Sheet With the optimization it was possible to reduce the quadratic error significantly!

30 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Conclusion Performing a parametric optimization with MS Excel as a solver, it was now possible to determine the parameters that have to fill in into a Gosh-Equation for calculating true stress true strain curves. Because of the fast calculation speed it is possible to get good results in a short time. The determined parameters can now transfered to a FE-Analysis programm like ANSYS or LS-Dyna. For this case, the Gosh-Equation has the following values: σ Y (ε p ) = k (ε 0 + ε p ) n – p σ Y (ε p ) = 1109 ( ε p ) – 34.8

31 Tutorial: Using MS Excel as a solver for fitting stress/strain curves with optiSLang Contact Information For further informations according to optiSLang or the used Excel macro, please contact us. DYNARDO GmbH Luthergasse 1D D Weimar Fon: +49 (0) Fax: +49 (0)