Skip to content

Convert a mesh from Solidworks Simulation into something that can be read by Fenics

License

Notifications You must be signed in to change notification settings

ComputationalBioLab/SolidworksToFenics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolidworksToFenics

This repository contains some Pyhton scripts for converting a solidworks 3D mesh into a mesh readable by Fenics

There are three possible ways:

  1. Direct conversion of a mesh exported from SolidWorks Simulation (INP format) using meshio. This is done by the script swtofenics.py. More documentation in the file itself.

  2. Direct conversion of a mesh exported from SolidWorks Simulation (GEO format). This is done by the script geotofenics.py. More documentation in the file itself. This maintains information about elements belonging to different Soidworks parts by assigning those elements a different Fenics domain.

  3. Conversion of a mesh exported from SolidWorks Simulation (GEO format) into Tetgen format. This is done by the script geototetgen.py. One can then maniuplate the Tetgen mesh using Tetgen (refinement, quality, etc) and then export it to Fenics using tetgentofenics.py. This process maintains information about elements belonging to different Soidworks parts by assigning those elements a different Fenics domain. More documentation in the files themselves.

About

Convert a mesh from Solidworks Simulation into something that can be read by Fenics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages