Hello I am trying to export a mesh using in the openfoam format.
I am using this python command
short_output_location=‘openfoam’
cubit.cmd(‘export openfoam ‘+short_output_location+’ overwrite’)
This successfuly creates a boundary, faces ,neighbour, owner and points file
Unfortunately it does not make a materials file
I am assigning materials in trelis using this python command
material_name=steel
cubit.cmd(“block 1 material '” +material_name+"’")
However it is not being carried over to the openfoam export
any advice on fixing this so the material of each element is also exported would be great
cheers
Jon