This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | howtosimulate:precipitation:export_import_tmt [2020/04/15 12:25] – [Preparation of the file for TMT import] pwarczok | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Exporting/ | ||
+ | |||
+ | While GUI editor or console/ | ||
+ | |||
+ | ===== Compatibility ===== | ||
+ | |||
+ | MatCalc version: 6.02 - ... \\ | ||
+ | Author: P. Warczok \\ | ||
+ | Created: 2020-04-15 \\ | ||
+ | Revisions: | ||
+ | |||
+ | ===== Objectives ===== | ||
+ | |||
+ | In this document, the procedures for exporting and importing the thermo-mechanical treatments (commonly abbreviated as “TMT” in MatCalc) using a text file is described. Additionally, | ||
+ | |||
+ | ===== Related documents ===== | ||
+ | |||
+ | - [[reference: | ||
+ | |||
+ | |||
+ | |||
+ | ====== Main document ====== | ||
+ | |||
+ | ===== Export a TMT ===== | ||
+ | |||
+ | Thermo-mechanical treatments can be stored in a text file. This file is created by MatCalc | ||
+ | |||
+ | * in GUI editor (menu “Global” -> “Thermo-mech. treatments”), | ||
+ | * in console/ | ||
+ | |||
+ | ===== Import a TMT ===== | ||
+ | |||
+ | The text files can be imported into the thermomechanical treatments: | ||
+ | |||
+ | * in GUI editor (menu “Global” -> “Thermo-mech. treatments”), | ||
+ | * in console/ | ||
+ | |||
+ | ===== Preparation of the file for TMT import ===== | ||
+ | |||
+ | The file describing the thermo-mechanical treatment needs to have a specific structure in order to be recognised by MatCalc. An overview of this structure is discussed [[reference: | ||
+ | |||
+ | The starting point is the data describing the bloom cooling stored at room temperature given in the table below. | ||
+ | |||
+ | ^ Time [h] ^ Temperature [°C] ^ | ||
+ | | 0 | 1400 | | ||
+ | | 1 | 1280 | | ||
+ | | 2 | 1170 | | ||
+ | | 3 | 1070 | | ||
+ | | 4 | 980 | | ||
+ | | 5 | 900 | | ||
+ | | 6 | 830 | | ||
+ | | 7 | 760 | | ||
+ | | 8 | 690 | | ||
+ | | 9 | 640 | | ||
+ | | 10 | 580 | | ||
+ | | 11 | 540 | | ||
+ | | 12 | 490 | | ||
+ | | 13 | 450 | | ||
+ | | 14 | 420 | | ||
+ | | 15 | 380 | | ||
+ | | 16 | 350 | | ||
+ | | 17 | 320 | | ||
+ | | 18 | 300 | | ||
+ | | 19 | 270 | | ||
+ | | 20 | 250 | | ||
+ | | 21 | 230 | | ||
+ | | 22 | 210 | | ||
+ | | 23 | 200 | | ||
+ | | 24 | 180 | | ||
+ | |||
+ | |||
+ | These two columns would be the content of **' | ||
+ | |||
+ | < | ||
+ | [data] | ||
+ | 1*60*60 1280 | ||
+ | 2*60*60 1170 | ||
+ | 3*60*60 1070 | ||
+ | 4*60*60 980 | ||
+ | 5*60*60 900 | ||
+ | 6*60*60 830 | ||
+ | 7*60*60 760 | ||
+ | 8*60*60 690 | ||
+ | 9*60*60 640 | ||
+ | 10*60*60 580 | ||
+ | 11*60*60 540 | ||
+ | 12*60*60 490 | ||
+ | 13*60*60 450 | ||
+ | 14*60*60 420 | ||
+ | 15*60*60 380 | ||
+ | 16*60*60 350 | ||
+ | 17*60*60 320 | ||
+ | 18*60*60 300 | ||
+ | 19*60*60 270 | ||
+ | 20*60*60 250 | ||
+ | 21*60*60 230 | ||
+ | 22*60*60 210 | ||
+ | 23*60*60 200 | ||
+ | 24*60*60 180 | ||
+ | [/data] | ||
+ | </ | ||
+ | |||
+ | Now, it is necessary to explain MatCalc the meaning of the columns. This is done, as follows: | ||
+ | |||
+ | < | ||
+ | [format] | ||
+ | column=absolute_time | ||
+ | column=end_temperature | ||
+ | [/format] | ||
+ | </ | ||
+ | |||
+ | In the **' | ||
+ | |||
+ | < | ||
+ | [variables] | ||
+ | segment-code=3 | ||
+ | [/ | ||
+ | </ | ||
+ | |||
+ | At last, the information about the tmt start temperature and the name is specified. | ||
+ | |||
+ | < | ||
+ | [global] | ||
+ | tmt-name=Cooling | ||
+ | start-temperature=1400 | ||
+ | [/global] | ||
+ | </ | ||
+ | |||
+ | One could add some comments to the file for an easier comprehension for the reader. Any such line shall start with a dollar-sign (**' | ||
+ | |||
+ | The complete file describing the above cooling curve that can be imported to MatCalc has the following content: | ||
+ | |||
+ | < | ||
+ | $ Below are the temperature-time data to be imported. | ||
+ | $ Time is given in hours here so every time record has to be multiplied | ||
+ | $ by 3600 so that MatCalc recognizes it properly (MatCalc operates with seconds) | ||
+ | [data] | ||
+ | 1*60*60 1280 | ||
+ | 2*60*60 1170 | ||
+ | 3*60*60 1070 | ||
+ | 4*60*60 980 | ||
+ | 5*60*60 900 | ||
+ | 6*60*60 830 | ||
+ | 7*60*60 760 | ||
+ | 8*60*60 690 | ||
+ | 9*60*60 640 | ||
+ | 10*60*60 580 | ||
+ | 11*60*60 540 | ||
+ | 12*60*60 490 | ||
+ | 13*60*60 450 | ||
+ | 14*60*60 420 | ||
+ | 15*60*60 380 | ||
+ | 16*60*60 350 | ||
+ | 17*60*60 320 | ||
+ | 18*60*60 300 | ||
+ | 19*60*60 270 | ||
+ | 20*60*60 250 | ||
+ | 21*60*60 230 | ||
+ | 22*60*60 210 | ||
+ | 23*60*60 200 | ||
+ | 24*60*60 180 | ||
+ | [/data] | ||
+ | |||
+ | $ Interpretation of the columns is given below (the first column is absolute time, | ||
+ | $ the second one is the end temperature of the segment) | ||
+ | [format] | ||
+ | column=absolute-time | ||
+ | column=end-temperature | ||
+ | [/format] | ||
+ | |||
+ | $ Definition of tmt name and tmt start temperature | ||
+ | [global] | ||
+ | tmt-name=cooling | ||
+ | start-temperature=1400 | ||
+ | [/global] | ||
+ | |||
+ | $ Definition of default segment-code is mandatory | ||
+ | $ In this case, the value of " | ||
+ | $ (MatCalc looks for segment end temperature and duration time) | ||
+ | $ (Duration time is calculated from " | ||
+ | [variables] | ||
+ | segment-code=3 | ||
+ | [/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||