Skip to content

grvaldes/voxelFoam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

voxelFoam

Python script for transforming voxelized ABAQUS meshes generated in TexGen into OpenFOAM folder structure.

Usage

If using the executable, call voxelFoam with command

./voxelFoam <mesh_file> <case_folder_name>

If run from code, call

python3 __main__.py <mesh_file> <case_folder_name>

from inside the folder or

python3 /path/to/folder/voxelFoam <mesh_file> <case_folder_name>

from anywhere else.

Issues

Texgen has an issue where the file has the wrong encoding and the program can't read the .inp file. The solution for now is to retype the problematic line and save the file before running the script.

An easy way to find the problematic line is to run the program in debug mode and see in which line the code stops reading the file. Usually it's only one bad line per file, around the definition of NSets and Equations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages