# -*- coding: latin-1 -*-
-# Copyright (C) 2009-2012 CEA/DEN, EDF R&D
+# Copyright (C) 2009-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
import hexablock
import os
-import geompy
#---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
pipe2 = doc.addPipe (ori2, vx, ni2, nr2, nl2)
grid = doc.makePipes (pipe1, pipe2)
+ doc.save ("pipes")
doc.saveVtk ("pipes.vtk")
return doc
nr1 = 2
nl1 = 10
- nr2 = 1
+ nr2 = 1.8
nl2 = 10
cyl1 = doc.addCylinder (ori1, vz, nr1, nl1)
# ================================================================= Begin
-doc = test_pipes ()
+## doc = test_pipes ()
+doc = test_croix ()
+## doc.setLevel (747)
law = doc.addLaw("Uniform", 4)
propa = doc.getPropagation(j)
propa.setLaw(law)
-mesh_hexas = hexablock.mesh(doc, "maillage:hexas")
+mesh_hexas = hexablock.mesh (doc, "maillage:hexas")