2011-12-22 16:00:25 +05:30
|
|
|
# $Id$
|
2012-02-16 23:32:15 +05:30
|
|
|
import sys
|
2011-12-22 16:00:25 +05:30
|
|
|
|
2011-12-15 14:21:16 +05:30
|
|
|
from .environment import Environment # only one class
|
|
|
|
from .asciitable import ASCIItable # only one class
|
2011-12-15 20:45:32 +05:30
|
|
|
from .config import Material # will be extended to debug and numerics
|
2012-02-16 23:32:15 +05:30
|
|
|
#from .block import Block # only one class
|
2011-12-15 14:21:16 +05:30
|
|
|
from .result import Result # one class with subclasses
|
|
|
|
from .geometry import Geometry # one class with subclasses
|
|
|
|
from .solver import Solver # one class with subclasses
|
2011-12-22 16:00:25 +05:30
|
|
|
from .test import Test
|
2012-07-18 19:16:33 +05:30
|
|
|
from util import *
|
|
|
|
|
2012-01-04 16:36:24 +05:30
|
|
|
try:
|
|
|
|
from . import core
|
2012-07-31 21:07:49 +05:30
|
|
|
# cleaning up namespace
|
|
|
|
###################################################################################################
|
|
|
|
# capitalize according to convention
|
|
|
|
core.IO = core.io
|
|
|
|
core.FEsolving = core.fesolving
|
|
|
|
core.DAMASK_interface = core.damask_interface
|
|
|
|
# remove XXX_
|
|
|
|
core.prec.init = core.prec.prec_init
|
|
|
|
core.DAMASK_interface.init = core.DAMASK_interface.DAMASK_interface_init
|
|
|
|
core.IO.init = core.IO.IO_init
|
|
|
|
core.numerics.init = core.numerics.numerics_init
|
|
|
|
core.debug.init = core.debug.debug_init
|
|
|
|
core.math.init = core.math.math_init
|
|
|
|
#core.math.volumeMismatch = core.math.math_volumeMismatch
|
|
|
|
#core.math.shapeMismatch = core.math.math_shapeMismatch
|
|
|
|
#core.math.deformedCoordsLin = core.math.math_deformedCoordsLin
|
|
|
|
#core.math.deformedCoordsFFT = core.math.math_deformedCoordsFFT
|
|
|
|
#core.math.curlFFT = core.math.math_curlFFT
|
|
|
|
#core.math.divergenceFFT = core.math.math_divergenceFFT
|
|
|
|
#core.math.divergenceFDM = core.math.math_divergenceFDM
|
|
|
|
#core.math.tensorAvg = core.math.math_tensorAvg
|
|
|
|
#core.math.logStrainSpat = core.math.math_logStrainSpat
|
|
|
|
#core.math.logStrainMat = core.math.math_logStrainMat
|
|
|
|
#core.math.cauchyStress = core.math.math_cauchyStress
|
|
|
|
#core.math.periodicNearestNeighbor = core.math.math_periodicNearestNeighbor
|
|
|
|
core.FEsolving.init = core.FEsolving.FE_init
|
|
|
|
core.mesh.init = core.mesh.mesh_init
|
|
|
|
core.mesh.regrid = core.mesh.mesh_regrid
|
|
|
|
#core.mesh.nodesAroundCentroids = core.mesh.mesh_spectral_nodesAroundCentroids
|
2012-07-18 19:16:33 +05:30
|
|
|
except ImportError:
|
|
|
|
sys.stderr.write('\nWARNING: Core module (Fortran code) not available, try to run setup_processing.py\nError Message when importing core.so: \n\n')
|
|
|
|
core = None # from http://www.python.org/dev/peps/pep-0008/
|
|
|
|
|
|
|
|
|