feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
I would like to give it a try too. Would you post an example blockmeshfile?
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
There are lot of blockMeshFiles available here in OpenFOAM tutorials. A very good example has been mentioned here in this StackOverflow post.
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
ok than the attached file will be my test case ...foadsf wrote: ↑Wed Aug 22, 2018 5:38 pm There are lot of blockMeshFiles available here in OpenFOAM tutorials. A very good example has been mentioned here in this StackOverflow post.
remove txt ...
- Attachments
-
- blockMeshDict.txt
- (3.01 KiB) Downloaded 53 times
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
played a bit ... https://github.com/berndhahnebach/FreeC ... f8426bd887
we really should include it as FEM mesh. I'm not good at re module at all. Do you plan to read the hexaeder too? If yes I would adapt the reader I started to read a real FEM mesh in FreeCAD. I would just need a dictionary, with the node numbers for each hexaeder.
bernd
we really should include it as FEM mesh. I'm not good at re module at all. Do you plan to read the hexaeder too? If yes I would adapt the reader I started to read a real FEM mesh in FreeCAD. I would just need a dictionary, with the node numbers for each hexaeder.
bernd
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
cool. I see you have already started integrating into the FreeCAD and sent a pull request? next logical steps would be:
- connect the points which are in the same face and put the face title/number in center
- put the hex name/number in the middle of the block
- file a better way of showing text, the is utterly awful! i would prefer a solution like the one I have suggested in this question where the text is proportional to the window size and always parallel to the view plane
Code: Select all
Draft.makeText([str(vertexNum)],point=FreeCAD.Vector(vertex[0],vertex[1],vertex[2]))
Last edited by foadsf on Wed Aug 22, 2018 8:59 pm, edited 1 time in total.
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
as I said, I'm not good at re module at all. For the hex elements I would need a dictionary, with the node numbers for each hexaeder. Would you add this to your code?
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
i will try implementing it. would you be so kind to help me with the annotation?
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
The blockMesh has this nice feature of which
Code: Select all
blockMesh -blockTopology
. and then two .obg files can be imported into MeshLab. What we are developing can replace that.write block edges and centres as .obj files
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
once we have the hexaeder I will show you something better than Draft to visualize the mesh
In the regard of the annotation. This should be dissussed once the mesh can be imported as FemMesh.
bernd
Re: feature request: Viewing and editing OpenFOAM blockMeshDict in FreeCAD?
I'm talking to one of the SO guys over here for the rest of the re stuff over here. feel free to join.