2013-01-29 21:01:57 +05:30
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
# Makes postprocessing routines acessible from everywhere.
|
2013-02-01 17:51:56 +05:30
|
|
|
import os
|
2013-01-29 21:01:57 +05:30
|
|
|
from damask import Environment
|
|
|
|
|
|
|
|
damaskEnv = Environment()
|
|
|
|
baseDir = damaskEnv.relPath('processing/')
|
|
|
|
codeDir = damaskEnv.relPath('code/')
|
|
|
|
|
|
|
|
#define ToDo list
|
|
|
|
bin_link = { \
|
|
|
|
'pre' : [
|
|
|
|
'marc_addUserOutput.py',
|
|
|
|
'mentat_pbcOnBoxMesh.py',
|
|
|
|
'mentat_spectralBox.py',
|
|
|
|
'OIMang_hex2cub.py',
|
|
|
|
'patchFromReconstructedBoundaries.py',
|
|
|
|
'randomSeeding.py',
|
|
|
|
'geom_fromAng.py',
|
2013-03-05 22:01:17 +05:30
|
|
|
'geom_fromVPSC.py',
|
2013-06-21 01:15:25 +05:30
|
|
|
'geom_fromEuclideanDistance.py'
|
2013-01-29 21:01:57 +05:30
|
|
|
'geom_fromMinimalSurface.py',
|
|
|
|
'geom_fromVoronoiTessellation.py',
|
2013-05-15 21:32:38 +05:30
|
|
|
'geom_fromOsteonGeometry.py',
|
2013-01-29 21:01:57 +05:30
|
|
|
'geom_canvas.py',
|
|
|
|
'geom_check.py',
|
|
|
|
'geom_rescale.py',
|
|
|
|
'geom_pack.py',
|
|
|
|
'geom_unpack.py',
|
|
|
|
'geom_translate.py',
|
|
|
|
'geom_vicinityOffset.py',
|
2013-06-21 01:15:25 +05:30
|
|
|
'geom_stretchInterfaces.py',
|
2013-01-29 21:01:57 +05:30
|
|
|
],
|
|
|
|
'post' : [
|
|
|
|
'3Dvisualize.py',
|
|
|
|
'addCalculation.py',
|
|
|
|
'addCauchy.py',
|
|
|
|
'addCompatibilityMismatch.py',
|
|
|
|
'addCurl.py',
|
|
|
|
'addDeformedConfiguration.py',
|
|
|
|
'addDeterminant.py',
|
|
|
|
'addDeviator.py',
|
|
|
|
'addDivergence.py',
|
|
|
|
'addEhkl.py',
|
|
|
|
'addEuclideanDistance.py',
|
|
|
|
'addMises.py',
|
|
|
|
'addNorm.py',
|
|
|
|
'addPK2.py',
|
2013-06-04 18:26:57 +05:30
|
|
|
'addSchmidfactors.py',
|
2013-01-29 21:01:57 +05:30
|
|
|
'addSpectralDecomposition.py',
|
|
|
|
'addStrainTensors.py',
|
|
|
|
'averageDown.py',
|
|
|
|
'binXY.py',
|
|
|
|
'blowUp.py',
|
|
|
|
'stddevDown.py',
|
|
|
|
'deleteColumn.py',
|
|
|
|
'deleteInfo.py',
|
|
|
|
'filterTable.py',
|
2013-04-24 00:00:56 +05:30
|
|
|
'marc_deformedGeometry.py',
|
2013-04-29 02:26:17 +05:30
|
|
|
'marc_extractData.py',
|
2013-01-29 21:01:57 +05:30
|
|
|
'mentat_colorMap.py',
|
|
|
|
'nodesFromCentroids.py',
|
|
|
|
'perceptualUniformColorMap.py',
|
|
|
|
'postResults.py',
|
|
|
|
'showTable.py',
|
|
|
|
'tagLabel.py',
|
2013-05-06 22:13:05 +05:30
|
|
|
'vtk2ang.py',
|
2013-06-30 02:44:58 +05:30
|
|
|
'vtk_addData.py',
|
2013-01-29 21:01:57 +05:30
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
for dir in bin_link:
|
|
|
|
for file in bin_link[dir]:
|
|
|
|
src = os.path.abspath(os.path.join(baseDir,dir,file))
|
|
|
|
if (file == ''):
|
|
|
|
sym_link = os.path.abspath(os.path.join(damaskEnv.binDir(),dir))
|
|
|
|
else:
|
|
|
|
sym_link = os.path.abspath(os.path.join(damaskEnv.binDir(),os.path.splitext(file)[0]))
|
|
|
|
print sym_link,'-->',src
|
|
|
|
if os.path.lexists(sym_link):
|
|
|
|
os.remove(sym_link)
|
|
|
|
os.symlink(src,sym_link)
|
|
|
|
|
|
|
|
|
|
|
|
|