CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing & Mesh Conversion

Blender Calculix he8 polyMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 3, 2007, 14:29
Default Script format was invalidated
  #1
Member
 
Doug Baldwin
Join Date: Mar 2009
Posts: 53
Rep Power: 8
gdbaldw is on a distinguished road
Script format was invalidated in the above post. The attached script should work. An example of Blender model and Calculix grid is shown below.

/attach{export-fbd.py}

Enjoy,
Doug

/image{Blender object}

/image{Calculix mesh of SymmetryPlanes}
gdbaldw is offline   Reply With Quote

Old   October 3, 2007, 14:45
Default Try again...first the script
  #2
Member
 
Doug Baldwin
Join Date: Mar 2009
Posts: 53
Rep Power: 8
gdbaldw is on a distinguished road
Try again...first the script

export_fbd.py

Now the images...

Blender object:



Calculix mesh of SymmetryPlanes:


gdbaldw is offline   Reply With Quote

Old   December 12, 2007, 05:50
Default Version 0.2 of script is attac
  #3
Member
 
Doug Baldwin
Join Date: Mar 2009
Posts: 53
Rep Power: 8
gdbaldw is on a distinguished road
Version 0.2 of script is attached. Interface panel is shown here:



Description of this grid generation tool is as follows:

This script exports manifolds to Calculix Format (.fbd).

Usage:

Create a base mesh object, then make a first copy of this object.
After a copy is made vertices of any object may be repositioned, but
vertices, lines, and faces may neither be added nor deleted. Successive
copies should be stretched into ever larger manifolds. This script will create
a 3D Calculix mesh successively from the base mesh to the first copy, then from
the first copy to the second copy, etc.

The Displacement button is useful for stretching the manifolds. This function
displaces the selected vertices of the selected object in the direction
normal to the local surface.

The goal is to displace the vertices of each manifold generally normal to
its preceding mesh, while also reshaping as needed. Graphic plots of
first cell height, aspect ratio, and skew are output to layers 11, 12,
and 13.

Blender Material names of the first and last object will be exported as
Calculix sets for generating patches.

The GUI parameters Target Aspect Ratio and Growth Factor are used for
calculating the hex cell height at the base mesh object, and the ratio
of successive cell heights extending to the outermost manifold. The values
Target Aspect Ratio and Growth Factor are the maximum values for the entire
hex mesh, regardless of any undulations in the manifolds. Aspect Ratio is
calculated to be the square root of the quad surface divided by the first cell
height normal to the quad surface.

Symmetry planes may be toggled on/off and positioned along the X, Y, and
Z axes. If one or more symmetry planes are toggled on, the exported file
will include a set of external surfaces called "symmetry". Symmetry planes
are generally useful only when vertices of the base object and manifolds
lie on the symmetry plane.

Select all objects to be exported, with the outermost object active. Press
the Export button to export, then select the file location and filename.
Press the Exit button to exit the script.
gdbaldw is offline   Reply With Quote

Old   October 2, 2008, 11:33
Default Dear Doug Baldwin, I'd real
  #4
Member
 
norman1981's Avatar
 
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 8
norman1981 is on a distinguished road
Dear Doug Baldwin,

I'd really appreciate to try the version 0.2 of your python script that was not attached to your last post... it seems to be what I was looking for in these days!
Thank you very much

Kind Regards

Norman
norman1981 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Polymesh cells file missing fabrizio Open Source Meshers: Gmsh, Netgen, CGNS, ... 15 October 30, 2008 10:07
Calculix help ivanwhlau OpenFOAM Pre-Processing 0 July 9, 2008 01:37
Basic geometric operations on polyMesh like intersections bfa OpenFOAM Running, Solving & CFD 1 March 14, 2008 06:26
CalculiX can write now a ployMesh klaus Open Source Meshers: Gmsh, Netgen, CGNS, ... 6 December 12, 2007 06:02
PolyMesh Question tj22 OpenFOAM Paraview & paraFoam 8 June 21, 2006 08:15


All times are GMT -4. The time now is 06:11.