Design of Experiment

Design of Experiment (DOE) enables the evaluation of more than one input factor by determining the input effects affecting the system for a desired output. It helps to evaluate the impact on outputs by controlling the value of a parameter or group of parameters. We can call data collection and analysis tool for DOE. One system is created during operation. We refresh our analysis by changing the variable values to examine the effect of different variable values on the output and compare them. In short, we examine how the same system works with multiple variable values. First of all, the lengths, the number of node in line with these lengths, type and dir values are entered to define my geometry. Then, boundary conditions are entered for case, as can be seen in the example below.

Step1.AddBC(“Initial Temperature”,[box1,All],[0],”K”) The initial temperature of the entire box geometry is defined as 0.

Step1.AddBC((“Temperature”,[box1,bottom], [Exp.AddParameter(100,numpy.linscpace(200,300,2))],”K”) In this line, the temperature of bottom is set to 100 by default. However, the analysis will also be repeated for 200 and 300 values. However, the point to note is that when the change on a different variable is taken into account, other variable values are preserved. Exp.AddParameter takes two values, the first value is the value that will remain constant while the experiments take place, the second is its variable space. If the last sentence is to be taken into account, the tempearature will be processed as 100 when experimenting on other variables. Step1.AddBC((“Heat Flux”,[box1,right, box1, left], [Exp.AddParameter(0,numpy.linscpace(2000,-2000,2)), Exp.AddParameter(0,numpy.linscpace(2000,-2000,2))]”K”) If we examine this line to understand the system; The heat flux is given zero value on the left and right edges of the box geometry. However, analysis will take place for 2000 and -2000 values during the experiments. Likewise, while the experiment is performed for other variables, the heat flux value for right and left will be accepted as 0. Ex.Build command allows solutions to be built by building at the end if the experiment is started. Ex.Result allows the resolved results to be written.

Note

work in progress

1import TwinAPI

Above code will help you overcome any engineering problem.

class TwinAPI.DOE.Experiment

Use to initialize a design of experiment It does not require any input Only works with Solver API. A new version to use it for any Python file is in progress

AddParameter(constantValue, varyingSpace, parameterName)

This line let’s the user to define the default value and the space of experiment. First value is taken as the default value to be used while conducting experiments on other variables. Second value is a mathematical space of values for which the variable can get. It can be used for any number of times in the same script.

Build()

After the domain of analysis is initialized and all the values are acquired, this method concludes the experiment definition process. It genearates all the domains with given boundary conditions and solves them one by one. If the Result method of Solver API is used, this module takes all the acquired results to memory.

Result(listOfVars, **GraphOptions)

This method should be used at the end of the script. After all the analyses are finished, the results are put into a proper format for TwinAPI’s graphical interface

Indices and tables