Skip to content

sampaulp/ToOptiX

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Topology optimization with ToOptix

Current version

  • Only 3D-FEM support
  • Heat Transfer
  • Static load case
  • Material will change only in young module and conductivity
  • Filter selects only the element around the filter object

Installation

  • Install python 3.xx
  • Download ToOptix

General information

  • Start this program in a user directory so Blender should be for example on the desktop
  • If you want to start Tooptix in "C:Programms\Blender Foundation ..." you need administrator rights (not reccomended)
  • So i would suggest you should take a copy of blender and then use it on the desktop or some other user access folder
  • (Optional) create a environment variable for Calculix (ccx)

Blender Installation

  • Check if import statement of run_optimization.py is: from .TopologyOptimizer.OptimizationController import OptimizationController
  • Copy your ToOptix Folder and paste it into ...\Blender Foundation\Blender\2.79\scripts\addons
  • Start Blender and activate the addon (type = mesh)

Python / PyCharm Installation

  • Check if import statement of run_optimization.py is: from TopologyOptimizer.OptimizationController import OptimizationController

  • Open the folder with pycharm and just start your optimization

  • Change file paths in "run_optimization.py"

  • Change optimization properties "run_optimization.py"

  • Create new cases for CalculiX "test.inp" ....

Example:

from run_optimization import run_optimization

cpus = 4
opti_type = "seperated"
# no design space is used until redefinition
sol_type = ["no_design_space", "static"]
files = ["no_design_space.inp", "testinp\Cylinder_Mesh.inp"]
max_iteration = 20
vol_frac = 0.3
penal = 3.0
matSets = 10
weight_factors = [3.0]
workDir = "work"
solverPath = "ccx"
run_optimization(penal,  matSets, opti_type, sol_type,
                                      weight_factors, max_iteration, vol_frac,
                                      files, workDir, solverPath, cpus)

Output

  • STL File in a specific folder for every optimizaiton step

Licence

GNU GENERAL PUBLIC LICENSE Version 2, June 1991

About

ToOptix is used for multiphysical topology optimization. There are different methods for combining structural, thermal, ... load cases.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.0%
  • Makefile 2.6%
  • Batchfile 2.4%