Hi Andrew, Hope all is well.
On Thu, Apr 3, 2008 at 4:23 PM, asreeve <[EMAIL PROTECTED]> wrote: > Daniel and Jonathan, > > I have a few, hopefully quick, questions. I've created a mesh using gmsh > that is oriented in the X-Z plane and would like to extrude it in the Y > direction. When I try to do this in fipy, the z cordinates for the verts > variable in the extrude function get set to zero, instead of the values > assigned by gmsh. Does fipy only allow extrunsion in the z-direction? > I've attached a simple script and mesh file that illustrates this. GmshImporter2D assumes the z axis values are zero. The extrude method of GmshImporter2D can probably extrude in any direction. You could use GmshImporter2DIn3DSpace, which will import a mesh and not assume zero z-axis (http://matforge.org/fipy/browser/trunk/examples/meshing/sphere.py). It would be easier to just reorient your geometry though. > My second question also relates to using the gmsh-generated mesh file. In > this file, gmsh tags the different surfaces with different numbers. Is it > possible to access these numbers in fipy so they can be used to assign > properties to the grid? No. > Finally, is there a way to return the 'layer number' in the extrude > function? I'd like to use the layer number to calculate the thickness of the > extruded layer. Not sure why you need to query the mesh for information you already know. Can you give me an example? Cheers -- Daniel Wheeler
