Commit Graph

1810 Commits

Author SHA1 Message Date
Martin Diehl 76236a4a0c direct initialization (float64 is anyway standard) 2019-10-17 22:41:18 +02:00
Philip Eisenlohr 03a3edc128 added option to multiply values instead of summing them 2019-10-17 13:23:14 -04:00
Franz Roters 91691744c6 Merge branch 'Marc-No-nonlocal' into 'development'
Marc no nonlocal

See merge request damask/DAMASK!98
2019-10-15 10:35:37 +02:00
Martin Diehl d73e653f50 support for unstructured grid (FEM) 2019-10-14 14:13:03 +02:00
Martin Diehl 708bbd3cb9 mesh/grid type transparent handling of coordinates 2019-10-12 16:15:04 +02:00
Martin Diehl 513f1c6726 write out point data
might be possible to use a rectilinear grid for this also in the case of
grid solvers
2019-10-12 12:34:37 +02:00
Martin Diehl b208fa6565 takeover from Vitesh's work with small adoptions to current DADF5 2019-10-12 08:02:57 +02:00
Martin Diehl 3206ee04bc nodal displacements for grid solver
currently for non-MPI only
2019-09-27 20:38:02 -07:00
Martin Diehl 8793050329 fixed handling of subfolders
now inline with post results.
Still a little bit unclear what happens if an absolute directory is
given. Probably best to either specify absolute or relative with respect
to working directory
2019-09-19 16:10:07 -07:00
Martin Diehl 4cedcee0b4 handling of increments follows handling of other 'visible'-items 2019-09-15 17:08:03 -07:00
Martin Diehl f6ac8c995f simplified and selected better names 2019-09-15 16:00:19 -07:00
Martin Diehl 04aefa84bc more appropriate names 2019-09-15 15:02:16 -07:00
Martin Diehl de316f1afe Merge remote-tracking branch 'origin/development' into even-more-HDF5-postprocessing 2019-09-14 12:48:42 -07:00
Martin Diehl b85ac11c49 implemented ideas from discussion with Philip
group matching unified and with wildcard support
time step handling should become more convenient (WIP)
add_norm can not compute abs of scalar, added function for that
general polishing here and there
2019-09-14 09:07:23 -07:00
Martin Diehl c13db4b3ca renaming
on_air/active are not clear. visible seems to be the most appropriate
name
2019-09-13 21:49:22 -07:00
Martin Diehl a6567e0cc6 safer to use functions
don't mess with attributes of the object, they might be renamed
2019-09-13 21:41:35 -07:00
Martin Diehl 002383afc2 solved problem with postprocessing
- to not 'try' with h5py library, it might have another 'try'. Check
explicitly for empty argument

also some polishing
2019-09-13 16:01:30 -07:00
Martin Diehl 52904a81dc taking prospector complaints serious 2019-09-13 06:49:25 -07:00
Martin Diehl a3c6f6682e using eigh should ensure orthogonal eigenvectors 2019-09-13 06:42:01 -07:00
Martin Diehl 890a6cf42f avoid floating point comparison and simply play it safe 2019-09-13 06:40:41 -07:00
Martin Diehl 0497b58629 use existing functionality 2019-09-13 06:38:22 -07:00
Martin Diehl cd6a4d1cfd that's all we need 2019-09-13 06:37:47 -07:00
Martin Diehl 66d8a3e601 stretch is symmetric (play it safe here) 2019-09-13 06:35:48 -07:00
Martin Diehl 79d2432c6c R not needed 2019-09-13 06:33:00 -07:00
Martin Diehl 49b3cd2145 transpose evuivalent for rot but faster 2019-09-13 06:32:05 -07:00
Martin Diehl 462bb07efd Merge branch 'development' into even-more-HDF5-postprocessing 2019-09-11 16:29:44 -07:00
Philip Eisenlohr 926217fcb6 added possibility to reduce rotation to specific fundamental zone, and to output 3-dim Rodrigues vector 2019-09-10 15:09:27 -04:00
Martin Diehl d446248d75 also ouptut materialpoint results if requested 2019-07-15 17:07:04 -07:00
Martin Diehl b6bb8a4650 simple strain calculation for DADF5
further enhancement requires to give optional arguments to
add_genericpontwise
2019-07-06 21:41:29 -07:00
Martin Diehl a8ed982706 [skip ci] better name 2019-06-15 07:31:30 +02:00
Martin Diehl eb8be13203 missing import 2019-06-14 17:27:00 +02:00
Martin Diehl 1cf9c59850 standardizing
import follows PEP style guide, encoding not needed for python3
2019-06-14 13:03:30 +02:00
Martin Diehl 4ff3efb1a5 to 'stack' tables 2019-06-13 23:14:40 +02:00
Philip Eisenlohr bffeaa980d restored Martin's logic, not clear why seemed to be broken with PE's former tests... 2019-06-03 14:43:23 -04:00
Philip Eisenlohr 8d52a3d52a polishing of geom_rescale; adopted modified testing reference 2019-06-03 14:15:23 -04:00
Philip Eisenlohr 2870fdb25b fixed buggy version 2019-06-03 13:39:45 -04:00
Philip Eisenlohr 89e4bc800c removed default size to adjust to changes in geom-class 2019-06-03 13:38:48 -04:00
Philip Eisenlohr 60031cc806 changed periodic option to reflect to better reflect what happens 2019-06-03 13:35:37 -04:00
Philip Eisenlohr 7ea417d585 rotated geometry maintains center of gravity 2019-06-03 13:30:14 -04:00
Martin Diehl 615ff4ed06 [skip ci] vectorized 2019-05-31 23:26:32 +02:00
Martin Diehl bf27505faa Merge branch 'development' into geometry-class 2019-05-31 16:21:50 +02:00
Martin Diehl 02671c5c03 bugfix
shoud now work for any possible combination of new and old grid and
offset
2019-05-31 15:58:47 +02:00
Martin Diehl 979145f023 vectorized 2019-05-31 10:27:26 +02:00
Martin Diehl 46f0ad052e direct support for vtk output
- geom_check can now handle multiple files
- microstructure index is stored as integer in vtk file
2019-05-30 15:35:45 +02:00
Martin Diehl 08052737cf if grid is an option, it is a tuple
tuples do not have the prod() function
2019-05-30 14:28:31 +02:00
Martin Diehl c2a5f37818 round to reasonable precision
without symmetry, there are 36000**3 = 46656000000000 orientations
2019-05-30 14:11:54 +02:00
Martin Diehl bf60cffab5 cleaning 2019-05-30 14:07:49 +02:00
Martin Diehl d0c7f8b934 texture is typically the more interesting information
therefore, but it to the top
2019-05-30 14:05:45 +02:00
Martin Diehl 8380071564 using geom class
- dropped the use of the material class as it does not allow to have
empty phase and crystallite. The material.config class needs a severe
refurbishing (no crystallite, use orderedDict instead of hand written
solution, drop of texture components). Probably best solution is to
postpone this until we have a yaml/json reader for Fortran.
2019-05-30 13:30:38 +02:00
Martin Diehl 7d07a3752f polishing 2019-05-30 13:30:18 +02:00
Martin Diehl 461611cde7 polishing 2019-05-30 11:26:47 +02:00
Martin Diehl 49c3903cc7 explicit loop for simpler code
- no invalid combintations any more (allow to move the original
microstructure out of the new canvas)
- handling of origin needs discussion. When we want to recover the old
behavior, the origin might be located outside of the new geometry
2019-05-30 11:26:07 +02:00
Martin Diehl e974bb9c43 similar structure for building blocks 2019-05-30 10:45:17 +02:00
Martin Diehl 510b55df50 several improvements
- more error checking
- order of points can be arbitrary also for microstructure input
- grouping of same orientation/phase combinations
2019-05-30 10:33:01 +02:00
Martin Diehl 931fa9d36a standardized and cleaned
-write to file if given
-type casting is done in the geom class
2019-05-30 10:20:07 +02:00
Martin Diehl 07276d511c modern python formatting
- 2 digits should be precise enough for euler angles
- no need to pad grain ID with leading zeros
2019-05-30 10:03:55 +02:00
Martin Diehl 73df615ff3 numpy meshgrid can do this now 2019-05-30 09:45:30 +02:00
Martin Diehl 4e0e5a2329 new python formatting style 2019-05-30 09:41:22 +02:00
Martin Diehl f30eda0267 no need to loop over files
will procude the same file over and over again
2019-05-30 09:32:37 +02:00
Philip Eisenlohr cdc8338347 full (not periodic) mirroring is geom_mirror default behavior 2019-05-29 20:22:29 -06:00
Philip Eisenlohr d79f0c6290 replace geom_canvas --blank with geom_fromScratch 2019-05-29 20:02:06 -06:00
Martin Diehl fd9801ba09 StringIO not needed 2019-05-29 19:44:38 +02:00
Martin Diehl d7e8a66746 polishing 2019-05-29 14:18:11 +02:00
Martin Diehl 16bd5294aa loop order as intented 2019-05-29 14:06:39 +02:00
Martin Diehl 78f30684f8 moderized
needs some polishing with respect to array orders
2019-05-29 09:40:56 +02:00
Martin Diehl 6836a2eae8 better readable 2019-05-29 08:04:01 +02:00
Martin Diehl dfc2b47abc better readable 2019-05-29 08:01:00 +02:00
Martin Diehl 8ee23b37b2 should not be part of the repo 2019-05-29 07:52:44 +02:00
Martin Diehl bb6f54963a save some memory (avoid copies if not needed) 2019-05-29 07:49:43 +02:00
Martin Diehl 9f68923038 restored old behavior
save some ressources by avoiding copies.
much slower than old version, better cast formula into meshgrid again
2019-05-29 07:38:11 +02:00
Martin Diehl 2eb964b1ea simplified
needs some manual checking and proper test
2019-05-28 23:49:11 +02:00
Martin Diehl 100a2031d3 [skip ci] no white space needed 2019-05-28 07:55:24 +02:00
Philip Eisenlohr 1f56ac6a4a streamlining and bugfixing of geom-class 2019-05-27 22:45:34 -06:00
Martin Diehl b69f0efbbc improved and simplified reporting 2019-05-27 22:00:26 +02:00
Vitesh Shah 5abcca50ee Merge branch 'more-HDF5-postprocessing-cleaned' into development 2019-05-27 12:17:12 +02:00
Martin Diehl 59c6c5cfe4 not needed anymore
essentially, (gauss) is an Euler angle triplet
2019-05-27 10:49:50 +02:00
Martin Diehl 6e06764e2d using (enhanced) central functionality 2019-05-27 08:38:02 +02:00
Martin Diehl d9ab87cfde crystallite will be removed soon, error handling is done by geom class 2019-05-27 08:35:24 +02:00
Martin Diehl 5cf63bbbc3 vtk 7 is out for more than 3 years 2019-05-27 08:34:36 +02:00
Martin Diehl b5cec797c0 cleaned 2019-05-26 23:03:31 +02:00
Martin Diehl c8dfba89e5 using class
still a very complex script
2019-05-26 22:49:05 +02:00
Martin Diehl 15d5a7ae28 don't access attributes directly 2019-05-26 22:08:14 +02:00
Martin Diehl f251cdb746 simplified 2019-05-26 22:07:50 +02:00
Martin Diehl af493cf9fd using class
needs more memory, but should be faster and is better readable
2019-05-26 21:32:08 +02:00
Martin Diehl 99da46fda8 polished 2019-05-26 20:36:41 +02:00
Martin Diehl 657a30c2f5 using new functionality 2019-05-26 18:51:27 +02:00
Martin Diehl feb2340935 self-reporting functionality for updating 2019-05-26 17:58:54 +02:00
Martin Diehl 34f7bbe2a0 'blank' option does not fit to flow of script
seeds_fromRandom -N 1 | geom_fromVoronoiTessellation -g 30 30 30 -s 1 1 1 > file.geom
or a few lines of python code give the same results
2019-05-26 13:06:22 +02:00
Martin Diehl e7b8ae08d0 polishing 2019-05-26 12:14:48 +02:00
Martin Diehl 974f67ffdc no frills 2019-05-26 12:06:51 +02:00
Martin Diehl be3513d1e0 polishing.
python imports follow PEP8
2019-05-26 09:49:56 +02:00
Martin Diehl a242382bed Merge branch 'geometry-class' of magit1.mpie.de:/damask/DAMASK into geometry-class 2019-05-26 09:19:29 +02:00
Philip Eisenlohr b13aa799c3 updated error message 2019-05-25 17:00:41 +02:00
Martin Diehl c89d344236 polishing 2019-05-25 13:51:05 +02:00
Martin Diehl 2b7d95f800 was accidently commited
gives different results due to interpolation from scipy
2019-05-25 12:09:09 +02:00
Martin Diehl c92969787a geom Class was updated 2019-05-25 11:56:06 +02:00
Martin Diehl 94f85b7f33 better readable 2019-05-25 10:45:58 +02:00
Martin Diehl fc1f65c34e works for dtype='float' 2019-05-25 10:36:46 +02:00
Martin Diehl 875643c363 same style 2019-05-25 10:24:45 +02:00
Martin Diehl 17eb0d1b20 using new class 2019-05-25 08:48:44 +02:00
Martin Diehl 4788fc6046 making use of new class
@philip: 1D arrangement needed?
2019-05-25 08:37:02 +02:00
Martin Diehl 6c7f7c77da specifying non-existing or invalid files is an user error
this is the standard behavior for common unix tools, no need to make an
exception here
2019-05-25 08:24:32 +02:00
Martin Diehl cf374a04dc using new class 2019-05-25 08:21:00 +02:00
Martin Diehl 420abfa162 use new class 2019-05-24 22:34:27 +02:00
Philip Eisenlohr eb13fbc0ce streamlined geom-info reporting; added --float option to some scripts; hardened against NaN; "microstructures" now reports uniques not max 2019-05-23 13:03:24 -04:00
Philip Eisenlohr e6cec6ecbe added option to reverse inside/outside of primitive body 2019-05-23 12:49:03 -04:00
Martin Diehl 339b86f784 bugfix + more verbose reporting 2019-05-16 11:44:03 +02:00
Martin Diehl 9f7fa5393a fix for scalar datasets 2019-05-16 09:31:13 +02:00
Martin Diehl 4599d1c34e does not match
node does not make sense, is weirdly numbered
2019-05-16 00:42:22 +02:00
Martin Diehl 3c0c0a2cd1 more flexible in selecting data 2019-05-16 00:27:06 +02:00
Franz Roters 998789528c Merge branch 'HDF5-out-homog-2' into 'development'
Hdf5 out homog 2

See merge request damask/DAMASK!78
2019-05-13 17:34:59 +02:00
Vitesh Shah feb1465803 Better to have actual increment num in output file 2019-05-08 17:31:18 +02:00
Martin Diehl 0cc2b1214d store requested data in ASCII file 2019-05-07 15:18:12 +02:00
Martin Diehl 1eaf67ad82 store results in subdirectory
defaults to postProc
2019-05-07 13:30:05 +02:00
Martin Diehl f65423fe9f rudimentary postResults for HDF5 output
only meant for compatibility during transition
2019-05-05 10:09:23 +02:00
Martin Diehl 8a9baf6d78 preparing output of mech_homog to HDF5 2019-04-30 18:45:38 +02:00
Philip Eisenlohr d74599d39a Merge branch 'HDF5-postprocessing' into 'development'
Hdf5 postprocessing

See merge request damask/DAMASK!72
2019-04-29 23:24:42 +02:00
Martin Diehl 6b7fd6b7ea visualizing data from DADF5: first prototype 2019-04-18 11:58:17 +02:00
Martin Diehl 7177813710 adding data to geometry 2019-04-17 19:57:16 +02:00
Martin Diehl 8eb1a35dfb first version of a library to parse HDF5
- preliminarly called DADF5 (DAMASK HDF5)
- script to write (empty undeformed) geometries is also added
2019-04-13 11:25:53 +02:00
Martin Diehl 0c6fde97f9 wrong positions for point visualization
- now the cell centers are at the centers of the cells for cell
visualization
2019-04-13 00:42:05 +02:00
Martin Diehl ed7423a3d6 bug fixes 2019-03-10 08:16:01 +01:00
Martin Diehl 67619fa92a consistent definition of axis angle 2019-03-09 20:18:28 +01:00
Martin Diehl 433281f71d following Rowenhorst convention 2019-03-09 19:58:17 +01:00
Martin Diehl 0d08659b2a general cleaning 2019-03-09 11:11:40 +01:00
Martin Diehl 60feb96afd let vtk decide on the file extension 2019-03-09 11:11:40 +01:00
Martin Diehl 5ab8e50d09 consistent with reference paper 2019-03-08 19:07:19 +01:00
Martin Diehl b84d4f1b6a improved error handling/clearer messages 2019-03-05 10:58:57 +01:00
Philip Eisenlohr e030038b73 [skip ci] added --blank option to create fresh canvas (from nothing) 2019-02-27 19:37:38 -05:00
Philip Eisenlohr c706ca5ba3 no progress bars in quite mode 2019-02-26 21:22:49 -05:00
Eureka Pai f3d2803443 addMises failed for single run of either --stress or --strain 2019-02-25 19:29:12 -05:00
Eureka Pai 2089726800 corrected output extension of vtk files to reflect binary format 2019-02-25 18:48:40 -05:00
Eureka Pai e401c21266 dropped obsolete option --inplace from geom_check 2019-02-25 18:30:45 -05:00
Martin Diehl e88182b007 improved converte, now with test
still needs to figure out how +P is handled
2019-02-24 14:39:34 +01:00
Martin Diehl 0d7fd587e3 direct translation from DREAM.3D to DAMASK geom
needs test
2019-02-24 12:59:10 +01:00
Martin Diehl 95be7ef938 directly convert to geom file + material config 2019-02-24 10:33:30 +01:00
Martin Diehl 903edcd429 do not patronize the user, rather give hints 2019-02-24 10:31:08 +01:00
Martin Diehl d3ac3cc0f5 using new Orientation class 2019-02-24 08:34:20 +01:00
Martin Diehl 9dc8dff4b1 cleaning and adding compatibility layer 2019-02-23 22:35:04 +01:00
Martin Diehl 9fa2553af4 task for DREAM.3D if needed
pointwise takeover should not be a problem anymore as reading in takes
no time (at least in comparison to addGrainID)
2019-02-23 22:14:55 +01:00
Martin Diehl a8e8b75cc0 use new rotation class 2019-02-23 22:13:24 +01:00
Martin Diehl fff377de7f initial simplification.
Should be able to generate from table containing either <microstructure>
or <texture> and <phase>
2019-02-23 22:06:31 +01:00
Martin Diehl b3455c825e transition to new orientation class
forward-backward conversion quite stable
2019-02-23 21:49:05 +01:00
Martin Diehl e4bb61c9d9 transition to new orientation class/DREAM.3D 2019-02-23 11:37:09 +01:00
Martin Diehl 93ae5cbd07 Merge remote-tracking branch 'origin/development' into 10-consistent-orientation-conversions-3 2019-02-22 23:05:36 +01:00
Satyapriya Gupta 3bec76e781 can now deal with 1x1x1 geoms 2019-02-19 12:06:46 -05:00
Martin Diehl 25727bfa52 using CamelCase 2019-02-19 10:32:18 +01:00
Martin Diehl 43a451b2e1 inplace not useful
use shell script if you want to keep an backup of your old data
2019-02-18 14:36:04 +01:00
Martin Diehl 27ebe1f665 improved documentation 2019-02-17 08:17:40 +01:00
Martin Diehl 5c20609e81 more verbose help, drop support for really old vtk 2019-02-16 22:20:44 +01:00