Global SIMULIA Tosca Fluid Parameter File XML Environment All SIMULIA Tosca Fluid commands are placed within the <PAR_FILE> </PAR_FILE> environment:
CFD Model The CFD model to use is named threeboxes and must be specified together with the solver name and version in the parameter file using the <MODEL_INPUT> command:
Like every SIMULIA Tosca Fluid command, <MODEL_INPUT> gets a command name using the <ID_NAME> command item. Design Variables The design variables, that are the cells that are to be used as design cells, are specified by means of an element group:
In this example, all cells are used as design variables and hence the group named ALL_CELLS is specified. This group is generated automatically by SIMULIA Tosca Fluid. For more information on element groups see and the description of the <ELEMENT_GROUP> command in the Commands Manual. Intended Flow Paths Next, the intended flow path for the optimization is defined using the <FLOW_PATHS> command. A flow path is a path from an INFLOW type flow boundary to an OUTFLOW type flow boundary. The model contains one “inlet” and one “outlet” boundary region. The inlet region has region number two, the outlet region number one.
Note:
Note that the boundary types do not depend on the CFD boundary condition that
is used. For example, a CFD solver “inlet” boundary with a negative
velocity could be used as the outflow for our required flow path.
Design Response and Objective Function Now the design response for the optimization can be defined using the <DRESP> command:
Based on the design response the objective function of the optimization can be defined using the <OBJ_FUNC> command:
The objective is to minimize the backflow intensity along the flow path, that is, to minimize the design response my_design_response. The target is specified using the <TARGET> command item. Note:
The backflow design response is the only usable design
response in the objective function.
Optimization Parameters Using the <OPT_PARAM> command, additional settings for the optimization job can be defined. In this case, the storage interval for results is defined.
A result store interval of 100 means that SIMULIA Tosca Fluid stores optimization and CFD results for every 100th iteration of the optimization. Note:
After the optimization run finished, results can be derived
from the SIMULIA Tosca Fluid
optimization database using Tosca Fluid.post
in addition to results from the intermediate runtime result output
capabilities. SIMULIA Tosca Fluid
always stores results of the last two iterations. For other intermediate
iterations, Tosca Fluid.post
can only generate results if results have been stored using the <RESULT_STORE_INTERVAL>
parameter.
Intermediate Runtime Result Output In this example, cell set output without additional result data is written in every 100th iteration using the MATERIAL extraction method:
Stop Condition To limit the duration of the optimization process to a upper bound, a stop condition is defined using the command <STOP>:
The optimization process runs for 1200 iterations, if it is not terminated by the user. Optimization Statement Finally all the subsequent commands can be tied together within the <OPTIMIZE> command that states the optimization problem:
Note, how the ID names of some of the prior commands are referenced here within the <OPTIMIZE> command. With this final step, a complete optimization problem is defined in the parameter file:
| |||||||