texgen to openfoam

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
benson1130
Posts: 3
Joined: Thu Jun 09, 2022 9:43 am

texgen to openfoam

Post by benson1130 »

Hi,how to convert the texgen files to openfoam.
I want to get the element set and orientation of the woven.
I tried to use paraview to save vtu to vtk, and then use openfoam's preprocessor vtkUnstructuredToFoam to convert the file, but I failed, the error message is as follows.
Thanks!!!
https://imgur.com/C50ayoA
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: texgen to openfoam

Post by louisepb »

Hi,
We had a researcher at Nottingham a couple of years ago who used a TexGen model in Openfoam by converting an Abaqus input file to the correct format. I have his code but would need to get in touch with him to see if it's ok to share it. I'm afraid that implementing this in TexGen is on my very long to-do list!
I'll get back in touch if I find out more and/or can put you in touch with him.
Best wishes,
Louise
benson1130
Posts: 3
Joined: Thu Jun 09, 2022 9:43 am

Re: texgen to openfoam

Post by benson1130 »

Hello
Thank you for all your assistance.
By the way,I haven't been able to bring the ori file into the polymesh of openfoam. Can this code make the ori work normally?
Thanks again for your help, it really helped me a lot.
benson1130
Posts: 3
Joined: Thu Jun 09, 2022 9:43 am

Re: texgen to openfoam

Post by benson1130 »

louisepb wrote:Hi,
We had a researcher at Nottingham a couple of years ago who used a TexGen model in Openfoam by converting an Abaqus input file to the correct format. I have his code but would need to get in touch with him to see if it's ok to share it. I'm afraid that implementing this in TexGen is on my very long to-do list!
I'll get back in touch if I find out more and/or can put you in touch with him.
Best wishes,
Louise
Hello Louise,
Excuse me, any news on the code to convert TexGen format to OpenFoam format?
I've been looking for an answer to this question recently, it would be great if your colleagues could provide the code and how to use it!
Thank you very much for your assistance.

Sincerely,
Benson
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: texgen to openfoam

Post by louisepb »

Hi Benson,

Sorry for the slow reply, I've just been on holiday for two weeks. Hopefully my colleague will get in touch with you. His user name on the forum is aerodeb.

Best wishes,
Louise
aerodeb
Posts: 1
Joined: Sat Jun 18, 2022 9:58 am

Re: texgen to openfoam

Post by aerodeb »

Hi Benson,

I have converted the texgen Abaqus input file to the OpenFOAM using the *.inp, *.ori files. I have converted the voxel mesh from texgen into blockMesh in Openfoam using a similar approach https://www.openfoam.com/documentation/ ... sh-utility.
To create the blockMesh from *.inp file, the first list of entries *Node up to *Element, Type=C3D8R will provide the details of vertices and then the element connectivity for matrix and yarn successively followed by *ElSet, ElSet=Matrix, *ElSet, ElSet=Yarn. I have used C3D8R to create an Abaqus voxel mesh.
Therefore you will be able to identify each voxel or hex mesh with an ID. Then use the orientation file *.ori to create individual anisotropic fibre orientation and fiber volume fractions from the *.eld file. I have created a separate porosityProperties file for the constant folder in OpenFOAM with details of fibre orientation.
I have written the entire code in MATLAB. However, this can be done in any platform, python, C ...
I guess this might help; if not, please text me.

Best Regards,
Debabrata
Post Reply