Commit Graph

356 Commits

Author SHA1 Message Date
Christoph Kords bd33169118 mistakenly committed table2ang in rev 2380, instead of vtk2ang. reverted changes in table2ang 2013-05-08 15:58:17 +00:00
Christoph Kords ed9413a008 added simple output about progress 2013-05-07 14:32:38 +00:00
Christoph Kords 543cbf3a14 first point on slice always starts at (0,0) 2013-05-07 13:18:26 +00:00
Christoph Kords c7f987a3c1 "unitlength" parameter, which determines the physical size of the mesh, now available as a global mesh variable "mesh_unitlength" and written to the .mesh file during init.
Hence, it is available to the marc_deformedGeometry.py script via "mesh_init_postprocessing()" and "mesh_get_unitlength()", so no need for setting the scaling of the displacement vectors explicitly through an option; now displacements and nodal positions are always consistent
2013-05-07 13:06:29 +00:00
Christoph Kords 9656d06fcc - all length in nag file in micrometer
- "size" option replaced by "scale": uniform scaling of all length
- default normal in negative z-direction
- more output in verbose mode
- ang file numbering starts with 1
- positions in ang file in TSL, not lab frame
2013-05-07 12:57:34 +00:00
Christoph Kords 278198121d only import vtk classes that were used 2013-05-06 16:55:44 +00:00
Christoph Kords f5482ffbf4 new script that generates ang files for slices through vtk data set 2013-05-06 16:37:54 +00:00
Christoph Kords 43647fc5e6 use datatype double instead of float for ouputs 2013-04-30 14:45:29 +00:00
Christoph Kords 12ca2c1931 added scaling option for displacements 2013-04-29 16:02:30 +00:00
Christoph Kords 9afaa9f4d0 set "line breaks" and "keywords" property 2013-04-29 09:24:07 +00:00
Christoph Kords fbb8353bba check if data set attribute is already present 2013-04-29 09:23:16 +00:00
Christoph Kords cc72c0b17b added two new scripts:
"marc_extractData" is a simple variant of the "postResult" script that extracts all data from a macro *.t16 file (quadratic elements not yet supported) and writes it into an asciitable
"addDataToGeometry" searches for corresponding *.txt and *.vtk file in a given directory and adds the data from the *.txt file as SCALARS to the *.vtk file

first script needed an additional function in mesh that returns the corresponding node of a given ip in a specific element
2013-04-28 20:56:17 +00:00
Christoph Kords 650b7ef4ac added python script that produces vtk files with the (node based and ip based) deformed mesh from marc output file 2013-04-23 18:30:56 +00:00
Philip Eisenlohr b572c71db0 fixed small bug in error reporting (missing column head complaint was broken...) 2013-04-16 20:10:17 +00:00
Martin Diehl b4f67248a5 deleted two simple scripts used for debugging but with almost no use any more 2013-04-12 13:22:15 +00:00
Martin Diehl 770712529d one more bug fix related to scaling 2013-03-26 16:16:59 +00:00
Martin Diehl ccef9d4f73 fixed scaling option 2013-03-26 14:18:29 +00:00
Philip Eisenlohr 5b96c1d62a scaling of deformation gradient fluctuations now possible in x,y,z independently (give array). 2013-03-22 15:09:55 +00:00
Martin Diehl cd86a80c2b corrected handling of default value and cases where the deformation gradient is not f 2013-03-19 18:22:14 +00:00
Martin Diehl 43ec1d2051 added output of perceptual unfiform colormaps to GOM (DIC Aramis) format, deleted some old files in the documentation folder 2013-03-19 15:19:46 +00:00
Martin Diehl 757c3e5a04 fixed bug in averageDown and updated test 2013-03-13 16:23:02 +00:00
Philip Eisenlohr 30024af6c2 polished string concatenations 2013-02-14 21:33:11 +00:00
Philip Eisenlohr a7e7a857c3 readjusted color values to work nicely with Msh colorspace (as in ParaView) 2013-02-02 20:17:54 +00:00
Philip Eisenlohr ac562f4b8b changed internal color mapping to damask.Colormap class 2013-02-02 15:12:43 +00:00
Martin Diehl e74b5da19a changed all remaining routines to fortran-fast arrays (geometry reconstruction etc.)
changed all remaining routines in f2py to more clever determination of array size (requires f2py >= 2.0)
enabled 3D visualize to work with odd resolution by switching to linear reconstruction
PLEASE NOTE: Redefinition of routines for f2py might cause trouble -> DELETE DAMASK_ROOT/lib/damask/core.so in this case
further changes: added pure statement where possible, polished, unified use of "Q" for "Quaternion" and reordered math to have similar routines together
2013-01-31 16:28:08 +00:00
Philip Eisenlohr 963ff0c3ae added support for tetrahedron element with 4 integration points (Marc ID 127) 2013-01-28 16:25:43 +00:00
Pratheek Shanthraj e691ff1ea1 updated setup_processing and corrected descriptions for new scripts 2013-01-22 09:56:36 +00:00
Pratheek Shanthraj a4abebfcbb some potentially useful postprocessing scripts 2013-01-21 23:15:23 +00:00
Mahesh Balasubramaniam 5676330e93 parsing options and file handling for perceptually linear diverging and sequential colormaps 2013-01-18 17:15:30 +00:00
Philip Eisenlohr e51779579e removed (unsupported) "--geom" option. 2013-01-18 13:01:43 +00:00
Mahesh Balasubramaniam 7ac7d1a657 new tool for creation of colormaps, now using proper classes 2013-01-15 18:24:10 +00:00
Mahesh Balasubramaniam cd5197556b sequential colormapping with options for desired color and type(increasing or decreasing) is now working 2013-01-04 19:50:39 +00:00
Mahesh Balasubramaniam 820b8eb2c1 put colormap related functions into library, renamed and added scripts for creation of colormaps 2013-01-04 13:57:36 +00:00
Mahesh Balasubramaniam 6ab79d5593 added options for parsing and the colormap. Customized colormap is written out as an xml file importable into paraview. 2013-01-04 12:04:05 +00:00
Mahesh Balasubramaniam 3242361c91 added a minor change to the string expression and the for loop. 2013-01-04 12:01:34 +00:00
Mahesh Balasubramaniam 7157e8f03c changed some of the color-space conversion formulae. 2013-01-04 12:00:10 +00:00
Pratheek Shanthraj a69aaa1315 Use scipy euclidean distance function instead of FMM (runs without skfmm
module installed)
2012-12-19 14:50:45 +00:00
Martin Diehl 260e4191a0 replaced tabs by spaces 2012-12-13 18:15:10 +00:00
Philip Eisenlohr dfb791bcaf only complain about missing Mentat release if needed... 2012-12-12 08:33:42 +00:00
Christoph Kords 34645a7222 write warning about missing Mentat release to stderr instead of stdout 2012-12-12 08:21:59 +00:00
Christoph Kords 93d822aaa1 symmetric colormap always with pure white in the middle 2012-12-11 16:50:34 +00:00
Pratheek Shanthraj 726d1173e5 polishing 2012-12-07 17:46:28 +00:00
Pratheek Shanthraj c4ef2e5925 bug fixes 2012-12-07 17:41:50 +00:00
Pratheek Shanthraj eaf7072bc1 Vectorized checking of neighbourhood for unique microstructure
(faster) 

M    addEuclideanDistance.py
2012-12-07 10:50:34 +00:00
Philip Eisenlohr a37250eef4 script to add the Euclidean distance map from boundaries, triple lines, and quadruple points to an ASCIItable of a regular grid.
requires numpy, scipy, and skfmm...
2012-12-06 21:49:49 +00:00
Philip Eisenlohr 2d4cf7da74 conditions can handle string data.
use "#s#label#" format to indicate that column headed by "label" contains strings (not floats)...
2012-12-03 14:29:21 +00:00
Philip Eisenlohr 7d96bb7ce8 Add column(s) containing directional stiffness based on given cubic stiffness values C11, C12, and C44 (in consecutive columns) 2012-12-03 13:10:16 +00:00
Philip Eisenlohr faa5f3c459 corrected severe bug in (non-logarithmic) strain calculations..! 2012-11-30 15:02:25 +00:00
Philip Eisenlohr 72159e867c fixed buggy file handling for multiple input files 2012-11-30 11:03:53 +00:00
Philip Eisenlohr 74f62c891d slightly safer file closing strategy 2012-11-30 08:38:52 +00:00
Philip Eisenlohr 9fb838fd28 changed switch from "sequential" to "column" 2012-11-30 08:29:34 +00:00
Philip Eisenlohr 1bd6bcfe3d script to list info, labels, and/or data of an ASCIItable 2012-11-30 08:26:13 +00:00
Philip Eisenlohr f446d4d87e added wildcard matching ( "?", "*", "[(!)sequence_of_characters]" ) for ASCII table labels 2012-11-29 10:42:13 +00:00
Philip Eisenlohr 255af58434 post processing script to add eigenvalues and eigenvectors to tensorial data in ASCII tables. 2012-11-23 21:49:30 +00:00
Martin Diehl 78c22d8449 corrected label in case of divergence of tensor, now using correct notation for scalar: divFFT(data) instead of 1_divFFT(data) 2012-11-21 10:31:52 +00:00
Martin Diehl b988caa6ba added script to add deviatoric and hydrostatic part of a tensor to ASCII table 2012-11-14 10:46:51 +00:00
Martin Diehl 1fc59107fa removed debug statement in averageDown.py, deleted obsolete spectral_iterationCount.py (new solver will report statistics anyway and most probably the current count does not work as the screen output was modified) 2012-10-31 10:06:11 +00:00
Martin Diehl b9aa50c59a improved performance for large packing values 2012-10-26 12:59:43 +00:00
Martin Diehl 573c4702eb fixed bug in averageDown.py and added test to check its features 2012-10-17 15:05:26 +00:00
Martin Diehl dcff640926 fixed handling of given resolution and dimension 2012-10-17 10:04:13 +00:00
Martin Diehl 6c7affc43f improved performance (hopefully)
now each new element gets a new ID, running from 1 to N for N elements
2012-10-16 18:06:02 +00:00
Philip Eisenlohr 1004d744f2 output speed-up by *show_table/*show_model masking 2012-10-05 21:49:33 +00:00
Martin Diehl c377dae9a6 added option to create hexagonal grid (2D slices only, according to P. Konijnenbergs experience on 3D ang) 2012-10-05 17:25:54 +00:00
Martin Diehl 6d97a92913 further improvements on the conversion, seems to work quite good for the 2D case now 2012-09-28 12:10:10 +00:00
Martin Diehl 6619717baf improved the conversion of tables to ang files 2012-09-26 12:20:14 +00:00
Philip Eisenlohr dc55e30cf1 added "startingIncrement" to spectralOut result interpretation 2012-09-05 15:14:36 +00:00
Martin Diehl b7dc9f9944 renamed spectral_buildElements.py to nodesFromCentroids.py and added first simple version of an ascii table to ang converter 2012-08-30 17:01:46 +00:00
Martin Diehl 3f99d2bb65 further improved prefix handling 2012-08-27 09:39:57 +00:00
Martin Diehl 96ba5ecae4 moved some more 'mesh related' functions for post processing from math.f90 to mesh.f90
f2py functions remaining in math.f90 now uses assumed size arrays in order to have simpler interfaces. This is only working with python 2.7!
changed python pre- and postprocessing scripts.
If you encounter any problems whith core modules, try to remove the old core.so in the lib/damask
2012-08-27 08:04:47 +00:00
Mahesh Balasubramaniam 975c3437ac added possibility to use comma in functions, to prevent splitting substituted by ';'. Eg. round(4.021,1) becomes round(4.021;1) in command line call 2012-08-22 17:47:34 +00:00
Christoph Kords 4cfc302cdd put prefix in front of the filename, not the directory name 2012-08-03 13:14:51 +00:00
Mahesh Balasubramaniam 3d7bc40520 added output of defaults for mesh, points, and box to help 2012-08-02 13:22:57 +00:00
Martin Diehl 13caf2d389 made linear shape reconstruction working again, pretty similar results like corrected FFT reconstruction 2012-07-18 18:39:59 +00:00
Philip Eisenlohr b30584b8d7 added "()" to file.close command 2012-07-03 12:33:11 +00:00
Philip Eisenlohr 925759000c added option to select data separation character from a choice of:
newline
tab (default)
space
2012-06-19 16:00:59 +00:00
Philip Eisenlohr 376ec2cd94 add option to output double, triple, and quadruple scalars 2012-06-19 15:30:16 +00:00
Taymor El Achkar 98b790004a Adding Second Piola-Kirchhoff data Coloumns (addPK2).
Integrating Stress-Strain table Data numerically (integrate.py).
2012-06-12 14:09:16 +00:00
Philip Eisenlohr 34ef08c762 added unique naming of output file 2012-05-07 20:36:58 +00:00
Philip Eisenlohr a84838d3ba removed erroneous print statements (leftover from debugging) 2012-05-07 19:28:21 +00:00
Philip Eisenlohr c9e17319ec now with correct ID and LF line endings... ;-) 2012-05-07 19:11:46 +00:00
Philip Eisenlohr 361b7ad398 new script to generate a twoD probability density map from ASCIItable data 2012-05-07 19:09:11 +00:00
Philip Eisenlohr c2954a2b33 now all heading labels squeeze out whitespace from their name. 2012-05-05 18:43:48 +00:00
Philip Eisenlohr 28e9b483ad corrected wrong byte offset when reading thru 2^31-1-8 four-byte limit 2012-05-01 22:42:45 +00:00
Martin Diehl 99f2b8603a new script for reconstruction of elements from F/IP(spectral_buildElements.py), corrected spectral_randomSeeding.py, made post/postResults.py aware of additional header/footer for file positions larger than 2**31-1 2012-04-24 15:09:20 +00:00
Martin Diehl 335df4346f deleted accidentally checked in file 2012-04-19 11:52:01 +00:00
Martin Diehl 31753be16f updated setup/setup_processing.py with new files
added data_readLine(LINE) and data_skipLines(LINES) for ascii table
2012-04-18 11:42:57 +00:00
Martin Diehl 17f644b261 new scripts to add deformed configuration to ASCII table and for generation of layered 2D geometries (EBSD)
addCompatibilityMismatch.py is now using functions from ASCII table library
2012-04-18 09:58:59 +00:00
Philip Eisenlohr 33ab391c14 added total increment column 2012-03-14 15:05:49 +00:00
Christoph Kords ac5b6233e6 initialize lastIncrement to 1 2012-03-14 14:59:20 +00:00
Philip Eisenlohr 9b17015b5a added option for nodal quantity output (uses "linear" translation).
improved stability when requesting non-existing increments.
2012-03-05 15:22:10 +00:00
Christoph Kords dc7234fd02 new option "--suffix" adds a suffix to the filename 2012-02-28 14:24:45 +00:00
Christoph Kords 10e93244c1 writing info to stdout instead of stderr 2012-02-28 13:21:59 +00:00
Philip Eisenlohr fc40291f38 script to add a suffix to specified ASCIItable labels 2012-02-24 08:53:19 +00:00
Philip Eisenlohr 53d7076d05 remove the info part from ASCIItables 2012-02-23 13:53:50 +00:00
Philip Eisenlohr a2b46c8a36 columns can be called by index
now pipe-aware...
2012-02-23 13:53:12 +00:00
Martin Diehl d68a3d1869 added LF=UNIX to a bunch of files 2012-02-22 13:30:00 +00:00
Philip Eisenlohr ff4c281ed2 fixed whitelist/blacklist behavior (blacking out overrides whitelisting)
now broken pipes stop script's outputting.
2012-02-16 18:47:07 +00:00
Philip Eisenlohr a994b4bcc9 fixed problem when condition was empty 2012-02-16 18:00:40 +00:00
Martin Diehl f2729255f8 changed name in install script, small corrections on regex 2012-02-16 15:15:43 +00:00
Philip Eisenlohr 1bad5bf3c7 removed --count option. introduced 'internal' column #_row_#. adopted polished column head identification developed in filterTable. wiki updated. 2012-02-16 11:56:16 +00:00
Martin Diehl 9f45cb3745 new option: -c --count: count rows in ascii table and add column "row" with row number 2012-02-16 11:16:36 +00:00
Philip Eisenlohr edd5adafd0 now with ID and correct line endings... 2012-02-16 08:58:07 +00:00
Philip Eisenlohr 37bd65ea34 script to filter an ASCIItable by condition. each row is evaluated against the condition, columns can be black- or white-listed (white wins)... 2012-02-16 08:36:35 +00:00
Martin Diehl 11d3c7a317 new spectra_parseLog searches through spectral log file and parses all possible output to an ascii table 2012-02-15 20:08:35 +00:00
Martin Diehl b153a762cb now using damask.core.math 2012-02-15 19:34:43 +00:00
Christoph Kords bd32f1bf1a adapting to current format of spectral out file
now using regular expressions to match "magic" lines
2012-02-15 12:07:00 +00:00
Philip Eisenlohr 8671b8ed38 script to delete existing columns from ASCIItable 2012-02-14 12:04:37 +00:00
Martin Diehl 156ec4582a polishing, adding _pInt etc. where applicable
post_results now handels zero increment different (like FEM, it is always there even if it is not counted)
2012-02-13 14:18:07 +00:00
Philip Eisenlohr 3228cf563c fixed bug when column was referenced multiple time in a formula.
changed column tagging character to '#' ('$' gave some trouble on the shell...)
2012-02-09 15:46:25 +00:00
Philip Eisenlohr 0f7c74e02d set ID flag and line endings 2012-02-09 13:06:22 +00:00
Philip Eisenlohr 5a6cd1fc8f slightly prettified handling of finite difference accuracy requesting 2012-02-08 12:01:38 +00:00
Philip Eisenlohr 56ce779f57 generalized slip system idea of Christoph to field data of "special" dimension (i.e. not 3 or 9).
dropped "norm"-suffix from input names of norms.
ASCIItable output is now called "normType" with type being Abs, Frobenius, or Max...
2012-02-08 12:00:31 +00:00
Philip Eisenlohr 282e4a0360 scripts now figure out dimension and resolution on their own... 2012-02-08 11:18:15 +00:00
Philip Eisenlohr 9c35e4e148 small polishing of help output. 2012-02-08 09:12:08 +00:00
Christoph Kords 51e8981ba3 not specifying the location of python executable directly, but rather getting it from $path, otherwise the scripts won't work on every machine 2012-02-07 13:09:10 +00:00
Christoph Kords 2f07faa0e2 norm capable of using different p-norms (abs norm, frobenius norm, and max norm). also able to handle "slipsystem" outputs (use option -s). number of slip systems can be set by option -i, if not 12 is default. 2012-02-07 13:02:56 +00:00
Philip Eisenlohr bffc22fbe1 major restructuring. packing stencil can be shifted to allow for element or nodal value averaging. 2012-02-02 17:12:48 +00:00
Christoph Kords 9b679c3c0b switched to damask include instead of outdated damask_tools 2012-01-31 13:08:25 +00:00
Martin Diehl 27a976c04f changed to new structure (using damask module) 2012-01-26 12:46:38 +00:00
Martin Diehl becb863110 added test for gfortran and gfortran vs intel, renamed intel test to new numbering scheme and changed to new div criterion
introduced "try" statement in lib/damask/test/test.py to avoid crash if a test variant fails
2012-01-25 15:14:31 +00:00
Philip Eisenlohr 7869379d38 output directory (--dir) can now cope with absolute path... 2012-01-20 19:53:56 +00:00
Philip Eisenlohr 076fef3323 now fully supports output of vector fields (needs POINT data for useful visualization!!) 2012-01-19 20:42:50 +00:00
Philip Eisenlohr b134ec7a39 adopted ASCIItable class and checked correctness of results. 2012-01-19 20:41:56 +00:00
Philip Eisenlohr 7ed2c19d0f switched importing from "msc_tools" to "damask"
patchFrom... now skips blank lines, has more commenting, treats (artificial) bi-crystal (somewhat) gracefully.
2012-01-16 09:32:36 +00:00
Philip Eisenlohr 55639f3362 added log time scale capability for spectral results 2012-01-12 08:06:25 +00:00
Martin Diehl 9abf5a110d changed from old DAMASK (f2py) module to new integrated damask tools 2012-01-06 10:41:23 +00:00
Philip Eisenlohr fbe908ccd2 now uses damask.core.math package 2011-12-22 10:42:24 +00:00
Krishna Komerla f463c2da70 added addCurl.py, not sure if it works correctly. still in old (eq. to addDivergence.py) style 2011-12-21 17:25:31 +00:00
Martin Diehl 3706bcbc3e fixed bug 2011-12-20 14:19:01 +00:00
Philip Eisenlohr 1194deff54 corrected leftover mistake (items --> table.data) 2011-12-15 10:53:20 +00:00
Philip Eisenlohr fb7adf7b89 adopted use of general damask package 2011-12-15 08:53:18 +00:00
Christoph Kords 609175318e added option for output of colormap palette also as float values 0.0-1.0 2011-12-08 10:02:48 +00:00
Martin Diehl ea0fe7b406 corrected 3D visualize (math.f90 part was not working)
small polishing of voronoi_tessellation.f90
2011-12-06 17:46:33 +00:00
Martin Diehl 5ebeb96e85 made DAMASK to work with gfortran:
-removed to long lines
-restructured f2py modules and merged make_DAMASK2Python into setup processing
-setup_code.py now sets library path in makefile and asks for compile switches for spectral code
-substituted \ in format strings with $

restructured DAMASK_spectral:
-more logical output and structure of code
-better input for spectral debug parameters
2011-12-06 16:58:17 +00:00
Philip Eisenlohr 9d3f7b8d3d adopted ASCII_TABLE class 2011-12-04 09:57:13 +00:00
Christoph Kords 42c3074821 mini calculator for column-column arithmetic 2011-12-02 15:15:36 +00:00
Martin Diehl ace6851389 moved all routines from postprocessingMath to math.90, renamed the module to DAMASK, changed scripts and interfaces accordingly.
polished math.f90 (mainly added _pInt/_pReal and intent(in/out))
curl_fft is still a dummy function
2011-12-01 12:01:13 +00:00
Philip Eisenlohr e98590d850 adopted ASCII_TABLE class 2011-11-24 17:10:50 +00:00
Philip Eisenlohr 18a09d7cff corrected handling of STDIN|STDOUT
adopted ASCII_TABLE class
2011-11-24 14:48:02 +00:00
Martin Diehl 267b8ac30c started to add curl calculation to postprocessingMath.f90
restructured colormap calculation. Algorithm is working now, but input/output still has to be done
2011-11-23 20:08:48 +00:00
Philip Eisenlohr 48f8d4ccb5 exchanged logic now using ASCII_TABLE class... 2011-11-23 14:54:53 +00:00
Philip Eisenlohr f685bbba0e exchanged location of "graincount" in user block.
now matches wiki entry:
1. homogenization block
2. grain block
  (grain count
   sub-block[s] of crystallite and constitutive)
2011-11-23 09:09:00 +00:00
Philip Eisenlohr e8f5996a96 renamed MSC_TOOLS.library_paths to libraryPath, since only single string is returned 2011-11-23 08:25:52 +00:00
Philip Eisenlohr 21fcd0357e now subsumed into general postResults functionality 2011-11-22 19:43:37 +00:00
Martin Diehl 75e20dffb7 corrected version conflict 2011-11-17 21:36:56 +00:00
Martin Diehl 09799b5b58 compile test is now at least compiling. still comparison to reference results has to be done 2011-11-11 15:06:33 +00:00
Claudio Zambaldi 06176873e4 after a somewhat lengthy discussion with Philip about usability and developability and general file-naming philosophy we think that we found a compromise on the "to-dot-py or not-to-dot-py" issue:
symlinks in DAMASK_ROOT/bin do not carry the extension, but the source files do.
Hope that results in the maximum number of happy developers and users.
2011-11-09 15:37:45 +00:00
Martin Diehl 98513a4e0d 2011-11-07 18:27:33 +00:00
Martin Diehl de96e99bca corrected determination of restartRead from commandline (now done by FEsolving instead of DAMASK_spectral_interface)
recompiled fftw libraries with --enable-shared to make them work with f2py
added draft for compilation test of spectral solver
2011-11-07 18:25:10 +00:00
Christoph Kords ba63d3231f fixed string include 2011-11-04 10:27:41 +00:00