예제 #1
0
#
#  <LicenseText>
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#

if __name__ == "__main__":

    from SASsimulation import geoshapespy

    print
    print "module information:"
    print "    file:", geoshapespy.__file__
    print "    doc:", geoshapespy.__doc__
    print "    contents:", dir(geoshapespy)

    sp = geoshapespy.new_sphere(10)
    #    geoshapespy.set_orientation(sp,10,20,10)
    cy = geoshapespy.new_cylinder(2, 6)

    el = geoshapespy.new_ellipsoid(25, 15, 10)

    hs = geoshapespy.new_hollowsphere(10, 2)

    sh = geoshapespy.new_singlehelix(10, 2, 30, 2)

# version
__id__ = "$Id$"

#  End of file
예제 #2
0
# 

if __name__ == "__main__":

    from SASsimulation import analmodelpy as analmodelpymodule
    from SASsimulation import iqPy
    from SASsimulation import geoshapespy

    print "copyright information:"
    print "   ", analmodelpymodule.copyright()

    print
    print "module information:"
    print "    file:", analmodelpymodule.__file__
    print "    doc:", analmodelpymodule.__doc__
    print "    contents:", dir(analmodelpymodule)

    a = geoshapespy.new_sphere(1.0)
    iq = iqPy.new_iq(10,0.001, 0.3)
    anal = analmodelpymodule.new_analmodel(a)
    analmodelpymodule.CalculateIQ(anal,iq)
    iqPy.OutputIQ(iq,"out.iq")




# version
__id__ = "$Id$"

#  End of file 
예제 #3
0
# 
#  <LicenseText>
# 
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 

if __name__ == "__main__":

    from SASsimulation import geoshapespy

    print
    print "module information:"
    print "    file:", geoshapespy.__file__
    print "    doc:", geoshapespy.__doc__
    print "    contents:", dir(geoshapespy)

    sp = geoshapespy.new_sphere(10)
#    geoshapespy.set_orientation(sp,10,20,10)
    cy = geoshapespy.new_cylinder(2,6)

    el = geoshapespy.new_ellipsoid(25,15,10)

    hs = geoshapespy.new_hollowsphere(10,2)

    sh = geoshapespy.new_singlehelix(10,2,30,2)

# version
__id__ = "$Id$"

#  End of file 
예제 #4
0
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
from __future__ import print_function

if __name__ == "__main__":

    from SASsimulation import analmodelpy as analmodelpymodule
    from SASsimulation import iqPy
    from SASsimulation import geoshapespy

    print("copyright information:")
    print("   ", analmodelpymodule.copyright())

    print()
    print("module information:")
    print("    file:", analmodelpymodule.__file__)
    print("    doc:", analmodelpymodule.__doc__)
    print("    contents:", dir(analmodelpymodule))

    a = geoshapespy.new_sphere(1.0)
    iq = iqPy.new_iq(10, 0.001, 0.3)
    anal = analmodelpymodule.new_analmodel(a)
    analmodelpymodule.CalculateIQ(anal, iq)
    iqPy.OutputIQ(iq, "out.iq")

# version
__id__ = "$Id$"

#  End of file