Activity for Hossein Talebi

  • Hossein Talebi Hossein Talebi posted a comment on discussion Open Discussion

    Hi again, I am now a bit confused with Exporting the mesh from a periodic structure. In the code from Joachim's comment, from ngsolve import * mesh = Mesh(geo.GenerateMesh(maxh=0.3)) the Mesh class from ngsolve is used. Now how would I Export the mesh to Abaqus for example? Previously I would do: ngmesh = geo.GenerateMesh(maxh=0.3) ngmesh.GenerateVolumeMesh() ngmesh.Export ("abcde.inp", "Abaqus Format") But now, mesh does not have an Export member. I see that "mesh" has a "ngmesh" member that can...

  • Hossein Talebi Hossein Talebi posted a comment on discussion Open Discussion

    Hi Joachim and Christopher, Thank you for the replys and sorry I could not write earlier. Anyhow, I got my answer. What I want to do is "computational homogenization" where I create and mesh the microstrucutre and compute the effective properties. So, in some cases it is better to apply Periodic boundary conditions EVEN if the structure is not periodic i.e. I have the nodes opposite faces. So, what I understand is Netgen can produce periodic structures if the geometry is periodic. For me however,...

  • Hossein Talebi Hossein Talebi posted a comment on discussion Open Discussion

    Hi Christoph, Thank you. Sorry I forgot to uncomment the problematic line. Here is the problematic code. I just had to add "+sphere" below. from netgen.csg import geo = CSGeometry() left = Plane(Pnt(0,0,0),Vec(-1,0,0)) right = Plane(Pnt(1,0,0),Vec(1,0,0)) bot = Plane(Pnt(0,0,0),Vec(0,-1,0)) top = Plane(Pnt(0,1,0),Vec(0,1,0)) back = Plane(Pnt(0,0,0),Vec(0,0,-1)) forward = Plane(Pnt(0,0,1),Vec(0,0,1)) brick = OrthoBrick(Pnt(0,0,0),Pnt(1,1,1)) sphere = Sphere(Pnt(0,0,0),.2).maxh(0.05) brick1=brick +sphere...

  • Hossein Talebi Hossein Talebi posted a comment on discussion Open Discussion

    Hello, I have the following code to apply periodicity on all edges of a block. But there seems to be a bug. Thank you. Cheers Hossein from netgen.csg import * geo = CSGeometry() left = Plane(Pnt(0,0,0),Vec(-1,0,0)) right = Plane(Pnt(1,0,0),Vec(1,0,0)) bot = Plane(Pnt(0,0,0),Vec(0,-1,0)) top = Plane(Pnt(0,1,0),Vec(0,1,0)) back = Plane(Pnt(0,0,0),Vec(0,0,-1)) forward = Plane(Pnt(0,0,1),Vec(0,0,1)) brick = OrthoBrick(Pnt(0,0,0),Pnt(1,1,1)) sphere = Sphere(Pnt(0,0,0),.2).maxh(0.05) brick1=brick #+sphere...

1