> When I try to convert the
> cube.stl file into cube.gts I get the following error.
>
> stephen@Ubuntu:/media/vbshare$ stl2gts -v <cube.stl > cube.gts
> Input file is not a valid STL file
> stdin:4:16: expecting a number (z-coordinate)
> I did a quick look at the STL specifications and the file looks fine to me.
> Can anyone help me understand how to make simple model shapes, export them
> to STL, convert them to GTS and run a 3D simulation using Gerris?
http://gfs.sourceforge.net/wiki/index.php/Using_Blender_to_create_solids_for_Gerris
cheers
Stephane
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Gfs-users mailing list
Gfs-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gfs-users
% stl2gts -v < Cube.stl > Cube.gts
# vertices: 8 edges: 18 faces: 36
# Connectivity statistics
# incompatible faces: 36
# duplicate faces: 36
# boundary edges: 0
# duplicate edges: 0
# non-manifold edges: 18
# edges per vertex: min: 3 mean: 4.5 | 1.5 max: 6
# faces per edge: min: 6 mean: 6 | 0 max: 6
# Geometric statistics
# face quality: min: 0.944203 mean: 0.944203 | 1.02021e-08 max: 0.944203
# face area : min: 0.5 mean: 0.5 | 0 max: 0.5
# edge length : min: 1 mean: 1.13807 | 0.195262 max: 1.41421
The problem here is:
# incompatible faces: 36
# duplicate faces: 36
The duplicate faces are probably the same as your incompatible faces.
I don't know how you created your cube but you need to get rid of the
duplicate faces. I suspect this will also ge rid of the incompatible
faces. "Incompatible faces" are faces which share an edge but which
have opposite orientations.
hope this helps
I believe the simulation domain you have defined is entirely solid
i.e. the volume of the fluid domain is zero, which is what the cryptic
message above is trying to tell you.
Try reverting the orientation of your cube (turn it inside out).
cheers
aha. things are often more complex than they seem...
Anyway, your cubea4.gts works fine with my version of Gerris. What
version are you using?
mine is:
% gerris3D -V
gerris: using 3D libgfs version 1.3.2 (090826-044718)
compiled with flags:
MPI: yes
pkg-config: yes
m4 and awk: yes
Can you send your cube.gfs file?
Mine is attached.
Stephane
Ok but what you are trying to do is strange. Do you want to compute
the flow around a cube? In this case it does not make sense to have a
cube which fills the whole domain. Or do you want to compute the flow
inside a cube? In this case tou could just use the GfsBox, you don't
need a GfsSolid.
For the flow around a cube try:
GfsSolid cubea4.gts { flip = 1 scale = 0.4 }
also try first without
GfsAdaptVorticity { istep = 1 } { maxlevel = 5 cmax = 1e-2 }
and use a coarser mesh to start with
GfsRefine 5
Once you are happy with your setup, you can turn stuff back on.
cheers