In this article we will discuss an alternative method of defining a customized volume ratio constraint such that the user can mark certain cells to be either fluid or solid.
Attachments: | Example_withConstraint.sim (12 MB) |
Topology optimization is a class of generative engineering methods that optimizes material layout within a given design space based on design objectives and constraints. Simcenter STAR-CCM+ provides a topology optimization method that generates flow channels by placing solid material in those parts of the design space that do not contribute to the engineering objective.
A “solid volume ratio” constraint is required for running the adjoint topology optimization. This constraint helps in driving the solution and delivering a desired topology. There is a built-in constraint to define the volume ratio which can be created as shown below.
Create a user-defined field function for material indicator. Define it such that we use spatial coordinates to fix the value of the material indicator. E.g. the function below sets the value of field function ”Custom_MaterialIndicator” to “1” for specific cells and returns the built-in material indicator (solved for by the optimizer) for the rest of the domain.
FF name = Custom_MaterialIndicator
FF definition = $${Position}("Spherical 1")[0] < <4mm> ? 1 : ${MaterialIndicator}
Create a user-defined field function for solid material indicator as shown below.
FF name = Custom_SolidMaterialIndicator
FF definition = 1-${Custom_MaterialIndicator}
Create a “Volume Average” Report with the design space as input geometry and field function set as Custom_SolidMaterialIndicator. i.e.,
Report type = Volume Average
Input Parts = Design Space Region
FF = Custom_SolidMaterialIndicator
Use the report created in step-3 to create a user-defined constraint for the topology optimization.
With the setup defined above we are replacing the built-in volume ratio constraint with a customized user-defined volume ratio constraint.
Example:
An example simulation file is attached with the above setup. The example file demonstrates a simple problem statement with a single inlet and outlet. The image below shows the cells that were marked using the user-defined field function to be fixed as fluid. The objective function of the study is to minimize pressure drop.
The animations below show the optimized topology with and without a user-defined constraint.
Design Evolution with User-defined constraint:
Design Evolution without User-defined constraint: