Martin Diehl
c4f639dbfb
prevent crash in option parsing
2015-03-13 14:46:40 +00:00
Haiming Zhang
a048b2ec15
1. Implement bbc2005 yield criterion (the residum and Jacobian); 2. bbc2005 works
2015-03-13 10:07:23 +00:00
Haiming Zhang
56cf1b53eb
add Fourier interplation, anisotropic Vegter yield criterion is okay
2015-03-13 08:50:47 +00:00
Franz Roters
4b19b74d11
number of intervals is limit/delta not limit/delta -1
2015-03-13 08:39:55 +00:00
Martin Diehl
def6d6b878
re-introduced determination of elem column
2015-03-12 06:20:40 +00:00
Bret Dunlap
3f340ffac9
fixed bug for table data without labels in header
2015-03-11 20:39:14 +00:00
Haiming Zhang
de29524189
add Vegter criteria, planar isotropy works
2015-03-11 17:42:46 +00:00
Martin Diehl
72efc7b30c
renamed resolution -> grid, dimension -> size
2015-03-11 08:55:48 +00:00
Martin Diehl
0dde6539ed
renamed from 1_ip to 1_ipinitialcoord
2015-03-11 07:22:11 +00:00
Martin Diehl
eb1561b528
changed postprocessing to use 1_ip instead of ip.x etc, plus corrected test files headers
2015-03-10 21:15:05 +00:00
Haiming Zhang
a62fa5d5dd
rewrite class Loadcase
...
1. add 2 dimension random load case generator
2. add Vegter load case generator(typical stress points in 2D)
2015-03-09 21:57:22 +00:00
Martin Diehl
271c9eed8b
use 1_ip instead of ip.x
...
Old format still as fallback option to support legacy files
2015-03-09 12:52:43 +00:00
Martin Diehl
4d587b1bf9
introduced 'alias' for ip.x by first searching for 1_ip
2015-03-09 11:32:16 +00:00
Martin Diehl
96a3cb0667
added some ideas regarding the incorporation of the vegter yield criterion
2015-03-09 11:24:06 +00:00
Philip Eisenlohr
639b030c65
shortened code for opening input file list
2015-03-06 17:04:44 +00:00
Haiming Zhang
37e40fdf79
Keep consistent with the new file: example.linearODF
2015-03-06 16:21:05 +00:00
Tias Maiti
654aacf207
removed invalid options (options.packing, options.shift)
2015-03-05 21:41:53 +00:00
Haiming Zhang
5d9abc16e8
the number of grains starts with one.
2015-03-05 20:16:17 +00:00
Haiming Zhang
aeb468254d
missing file.close()
2015-03-05 19:12:07 +00:00
Haiming Zhang
4579a696e8
use OptionParse to parse the command-line options, add help information,
...
add the output of material.config file.
2015-03-05 19:01:31 +00:00
Haiming Zhang
d188f35c17
use OptionParse to parse the command-line options, add help information, format the header of output file, now the output file can be used by hydribIA_linODFsampling.py directly
2015-03-05 17:04:16 +00:00
Martin Diehl
f1df6cf40f
copied some stcopied some scripts from the Code folder that are of interest for DAMASK
2015-03-05 10:05:00 +00:00
Chen Zhang
8c91d174fa
remove some debugging print;
...
add meshgrid2, but stick with list comprehension since it is actually faster.
2015-03-02 16:20:47 +00:00
Tias Maiti
0077177c05
some polishing (numpy —> np, theTable —> table)
2015-03-02 05:06:29 +00:00
Chen Zhang
0d7355a49f
correct help information.
2015-02-27 23:08:48 +00:00
Chen Zhang
1742725963
interpolate microstructure using Delaunay triangulation and Barycentric interpolation.
2015-02-27 22:59:09 +00:00
Haiming Zhang
9203b37fbc
1. Implement Hill1979 yield criterion (the residum and Jacobian);
...
2. Hill1979 works
2015-02-25 17:24:33 +00:00
Haiming Zhang
8b1846e78e
1. Implement Karafillis-Boyce yield criterion (the residum and Jacobian);
...
2. Karafillis-Boyce works
2015-02-24 16:46:09 +00:00
Haiming Zhang
39e17fc95a
1. add __init__() for the "Class" of each Criterion;
...
2. Polishing
2015-02-20 20:51:23 +00:00
Haiming Zhang
a3e5da0bfd
1. Implement 2D and 3D Cazacu-Barlat yield criteria(the residum and Jacobian);
...
2. Both work
2015-02-20 20:34:47 +00:00
Haiming Zhang
09c357c70f
1. Fix bug of Yld2004-18p;
...
2. get deformation rate tensor and Lankford coefficient.
2015-02-20 14:40:24 +00:00
Martin Diehl
425251ae2b
fixed bug: theTable -> table
2015-02-14 11:23:50 +00:00
Haiming Zhang
4a63aff1ed
1. Implement Yld2004-18p yield criterion(the residum and Jacobian);
...
2. Yld2004-18p yield criterion takes effect
2015-02-13 17:22:19 +00:00
Haiming Zhang
77cffd8040
1. fix up Banabic-Balan-Comsa 2003 (BBC2003) yield criterion;
...
2. add the calculation Jacobian of BBC2003;
3. Now BBC2003 yield criterion takes effect
2015-02-12 20:48:03 +00:00
Haiming Zhang
69af205721
add the calculation of Jacobian of isotropic and anisotropic Barlat1991, shows better performance.
2015-02-12 11:04:00 +00:00
Haiming Zhang
40f1f3af23
add the calculation of Jacobian of Hill1948 and Drucker family criteria.
2015-02-11 19:06:23 +00:00
Philip Eisenlohr
53b40662ec
now with executable, correct line endings, and ID tags.
2015-02-11 17:26:56 +00:00
Philip Eisenlohr
d5f9f543ca
Script to generate PNG image from given column (or 2D data in overall ASCIItable) with custom colormap and pixel sizes.
...
Supersedes “imageFromData” from “Code” repository.
2015-02-11 17:25:49 +00:00
Philip Eisenlohr
9eae665365
fixed ‘too many files open’ issue when processing a large list of input tables.
2015-02-11 17:22:47 +00:00
Haiming Zhang
eed00007f9
Re-write the script:
...
1. replace curve_fit with leastsq, which supports the analytical Jacobian
2. specify a "class" (contains both residum and jacobian) for each criterion.
3. add the calculation of Jacobian
2015-02-11 16:49:40 +00:00
Tias Maiti
1b1ed3bbcf
removed unnecessary lines
2015-02-11 06:18:08 +00:00
Martin Diehl
40a792d785
fixed bug in consistency check
2015-02-10 13:49:47 +00:00
Martin Diehl
63434c2ddb
corrected error checking for correct type
2015-02-09 08:57:14 +00:00
Martin Diehl
7edd209ce4
corrected wrong name in add..., more verbose error checking for geom_from...
2015-02-07 22:22:28 +00:00
Martin Diehl
6140285ddd
small changes (use ip.x instead of 1_ip). Probably we should modify postResults to use the 1_, 2_, 3_, standard notation for ip as well
2015-02-07 18:13:51 +00:00
Martin Diehl
e4a94aa72b
put changes on algorithm from geom_fromEuclideanDistance into addEuclideanDistance
2015-02-07 17:11:46 +00:00
Haiming Zhang
f3bab46275
addthe Cazacu–Barlat (CZ) yield criterion (3D and 2D), Banabic–Balan–Comsa (BBC) Yield Criterion.
2015-02-07 16:58:57 +00:00
Haiming Zhang
cdb7795956
1. Add default boundary constraint(no constraint) and initial guess to the dictionary
...
2. With the boundary constraint of exponential term, now non-quadratic yield criteria (isotropic Barlat 1991, anisotropic Barlar 1991, Hosford) take effect.
2015-02-07 11:07:45 +00:00
Haiming Zhang
0350b1829c
1. Replace curve_fit(see minpack.py) with curve_fit_bound(see damask/util.py), now the boundary constraint can be applied.
...
2. Transfer the output information into dictionary 'fittingCriteria', compact subroutine 'fit'.
2015-02-06 14:01:04 +00:00
Haiming Zhang
ce09e992cc
1. Change yieldStress from 'list' to 'numpy.arrary', thanks to Martin's suggestion (3907);
...
2. Change '3*3' Cauchy stress tensor to '1*6', now the number of input 'xdata' for fitting is 6*Points, which is less than the former 9*Points.
2015-02-06 13:48:14 +00:00
Martin Diehl
0b3205a24b
some suggestions how to simplify
2015-02-06 09:29:21 +00:00
Haiming Zhang
4f2c07063b
Fix general Hosford!
2015-02-05 20:18:07 +00:00
Haiming Zhang
2b704b3905
Fix: Tresca, von Mises, Drucker, Hill 1948 criteria.
2015-02-04 16:47:35 +00:00
Haiming Zhang
2d568b49f2
add the output of standard deviation errors;
...
fix Hill 48 and anisotropic Barlat 1991
2015-02-04 13:04:34 +00:00
Haiming Zhang
3845c47e61
complement of 3897: add isotropic and anisotropic Barlat 1991 to the dictionary
2015-02-03 12:57:18 +00:00
Haiming Zhang
bef846d294
add isotropic and anisotropic Barlat1991 yield criteria.
2015-02-03 12:54:16 +00:00
Haiming Zhang
55445af9bc
1. add initial guess and weight to the fitting (nonlinear least square regression);
...
2. extend the dictionary:fittingCriteria
2015-02-03 12:18:53 +00:00
Haiming Zhang
cc6138ec41
rewrite "def fit()";
...
add format output.
2015-02-02 17:41:19 +00:00
Haiming Zhang
fd75772a3f
Fix the bug of calculating principal stresses. Now the fitting result is better for the criteria which expressed in principal stresses.
...
Thanks to Martin.
2015-02-02 16:52:28 +00:00
Martin Diehl
4772efbc45
fixed syntax error
2015-01-23 10:11:12 +00:00
Tias Maiti
2c9c04eb76
added script to replace all rows of an ASCII table by a single row containing their average
2015-01-23 00:57:10 +00:00
Martin Diehl
5be9a75cff
fixed indentation
2015-01-22 09:04:01 +00:00
Martin Diehl
440263f2f0
simplified, removed deprecated synonyms
2015-01-22 09:03:18 +00:00
Martin Diehl
ed6b4fe50a
fixed issues when having grains and eulers
2015-01-13 16:04:49 +00:00
Martin Diehl
c08f704dee
added Id + a little help
2015-01-07 19:29:27 +00:00
Tias Maiti
ca58216134
added missing math module import
2015-01-05 12:25:03 +00:00
Martin Diehl
3e3c13bf0b
added missing math module import
2015-01-04 21:02:17 +00:00
Martin Diehl
8dea16c07f
fixed wrong assignment of phase and made orientation comparison robust
2014-12-20 12:42:21 +00:00
Martin Diehl
5e8fff13d9
worked on the vtk binary out, still some problems with multicomponent datatypes
2014-12-18 21:46:38 +00:00
Martin Diehl
6604d0f8e8
polishing
2014-12-18 19:26:52 +00:00
Martin Diehl
9ac62e42df
added possibility to specify number of bins to be sorted in advance to current cleared stage
2014-12-18 18:03:36 +00:00
Philip Eisenlohr
89f8ba979e
Add x,y coordinates of stereographic projection of given direction (pole) in crystal frame.
2014-12-13 00:12:55 +00:00
Martin Diehl
f8ce57abc8
removed aliases 'resolution' and 'dimension' for 'grid' and 'size' because some scripts did not have it anyway and the rename happened quite a while ago
2014-12-08 08:48:55 +00:00
Martin Diehl
c067d0dc69
fixed wrong periodicity treatment
2014-12-05 10:35:56 +00:00
Luv Sharma
30920801aa
extended for 2D, finds the bounding edges and assigns them 'physical' attribute.
2014-12-04 11:33:06 +00:00
Martin Diehl
47685ac7c4
added output of script ID do material.config
2014-12-03 10:09:47 +00:00
Martin Diehl
590106b889
added possibility to add randomly distributed second phase (index = indexGiven+1)
2014-12-02 22:22:11 +00:00
Philip Eisenlohr
3cfabe3b83
standardized script name reporting
2014-11-18 15:31:39 +00:00
Philip Eisenlohr
b17dcd7652
added options ’—origin’ and ‘—geom’. Latter interprets the geom-header to derive voxel sizes.
2014-11-18 15:26:59 +00:00
Philip Eisenlohr
461a3fa979
fixed syntax error and added ‘—render’ option to immediately see output on screen
2014-11-18 15:24:09 +00:00
Philip Eisenlohr
a3196669ea
exchanged deprecated data array read function
2014-11-18 15:22:00 +00:00
Philip Eisenlohr
7136db1fd8
fixed syntax error: ’options.error’ —> ‘parser.error’ for error handling
2014-11-18 15:20:57 +00:00
Philip Eisenlohr
99ffa554eb
added ‘1_*’ to ‘*’ as possible column label indicator
2014-11-18 15:20:10 +00:00
Philip Eisenlohr
b5ef329f34
changed default position column format from .x,.y,.z to more standard 1_,2_,3_
2014-11-18 15:18:27 +00:00
Martin Diehl
b656113b11
added missing string import in marc_addUserOutput (introduced with rev 3718) and removed unwanted imports and introduce use of damask.extendableParser in some other scripts
2014-11-18 08:00:45 +00:00
Martin Diehl
409a75c964
fixed 2 small flaws in geom_fromAng, corrected stringID and stringName in all remaining files in 'pre'
2014-11-16 21:44:46 +00:00
Philip Eisenlohr
6a3546cee2
script to produce ASCIItable from geom dataset.
...
contains best-practice for looping over multiple input files (to avoid error caused by too many open file handles!)
2014-11-14 15:16:00 +00:00
Philip Eisenlohr
deee3a175a
polishing and simplifications
2014-11-14 14:53:48 +00:00
Martin Diehl
733e85f6e6
fixed bug in material.config when do not compress the data. Thanks to Noriki for figuring out
2014-11-14 13:53:55 +00:00
Martin Diehl
2d2eb4e001
using extendable option, numpy as np, etc.
2014-11-07 11:13:14 +00:00
Martin Diehl
047042ad9f
using extendable option, numpy as np, etc.
2014-11-07 11:07:03 +00:00
Tias Maiti
7d6670d4cf
fixed table —> theTable flaw in output finalization
2014-11-05 22:17:06 +00:00
Philip Eisenlohr
52160385a6
alternative expression to parse script filename (scriptID excluding file extension).
2014-11-05 22:05:37 +00:00
Philip Eisenlohr
9345640dfd
mainly polished for “numpy as np”. added alternative expression to parse script filename (excluding file extension).
2014-11-05 22:04:59 +00:00
Philip Eisenlohr
35f8b9786e
changed way to sample grid positions when placing primitive object. Should be somewhat more efficient now.
2014-11-05 22:02:40 +00:00
Philip Eisenlohr
f7da804927
changed file handling to allow for serial processing of large file numbers.
2014-11-05 22:01:11 +00:00
Philip Eisenlohr
f6741138e7
had badly messed up the file handling in commit 3630. STDIN did not work, files were not checked for existence…
2014-10-29 13:27:40 +00:00
Martin Diehl
bdd2d55383
small bug fix for last commit
2014-10-24 06:36:01 +00:00
Philip Eisenlohr
13ba71a314
fixed bug where option.condition was altered in processing of first file, thus preventing additional files from seeing the same user input.
...
changed file handle setup to allow for large lists of input files.
2014-10-23 21:23:10 +00:00
Pratheek Shanthraj
e779c2e1e6
specify mesh size
2014-10-21 14:42:13 +00:00
Pratheek Shanthraj
975e42b132
specify which surface(s) you want to tag
2014-10-21 13:57:17 +00:00
Luv Sharma
8dd575cdbe
now making use of parser options for input arguments
2014-10-17 11:51:22 +00:00
Luv Sharma
0193578540
now appending the bounding surface information to the gmsh geometry file
2014-10-16 17:23:17 +00:00
Luv Sharma
7e0c6f420b
added shebang script to make executable, some properties and few improvements. Now giving the bounding surfaces.
2014-10-16 15:53:46 +00:00
Martin Diehl
dc7a4bb978
using damasks extentable option + correct version string
2014-10-16 14:56:44 +00:00
Luv Sharma
ff0f619015
started to write a script for finding bounding surfaces from gmsh geo file.
2014-10-16 14:07:25 +00:00
Martin Diehl
ce1f17c9cb
worked on the binary vtk out needed for large datasets
2014-10-14 07:13:13 +00:00
Martin Diehl
5e16cdd14f
added support for multiple entries per line
2014-10-13 13:58:26 +00:00
Martin Diehl
e1530afac7
test for geom_fromTable (does not work for empty black or whitelist)
2014-10-13 09:54:01 +00:00
Martin Diehl
f4de982182
svn caused trouble due to rename, again some missing files
2014-10-10 12:11:10 +00:00
Martin Diehl
46d67f63d8
added test for converter from Ricardo's files
2014-10-10 08:54:48 +00:00
Martin Diehl
57e522566a
updated python style
2014-10-09 17:03:06 +00:00
Martin Diehl
47c8bfeacb
commented code
2014-10-09 11:01:07 +00:00
Martin Diehl
d86f091026
some small fixes, reporting still needs update
2014-10-06 12:47:52 +00:00
Martin Diehl
2836b2fb35
work in progress, extending to more criteria
2014-10-03 09:27:20 +00:00
Martin Diehl
033a275d82
a bunch of small changes. deleted compiled FFTW libraries
2014-10-02 21:27:03 +00:00
Philip Eisenlohr
23ee538dcb
shortened syntax. fixed undefined file['croak']
2014-10-02 04:49:46 +00:00
Philip Eisenlohr
bfe20a3af8
added $Id$ property and LF line endings.
2014-09-29 15:57:31 +00:00
Martin Diehl
f2d9d66129
improved readibility, fixed negative coordinates, improved output
2014-09-29 15:55:17 +00:00
Martin Diehl
ff475f1459
first draft of a constraint voronoi tessellation to match grain distribution
2014-09-29 10:19:49 +00:00
Philip Eisenlohr
496c3d4bc8
added line breaks identifier and $Id$ flag
2014-09-25 21:54:42 +00:00
Philip Eisenlohr
b85797c109
significant speed improvement for large grids.
...
polished messages and fixed error reporting bug.
2014-09-24 23:47:52 +00:00
Tias Maiti
78ab14806f
fixed bug in parser option type definition
2014-09-21 17:59:06 +00:00
Tias Maiti
14530b0a76
fixed bug 'the table' instead of 'table'
2014-09-19 15:24:59 +00:00
Martin Diehl
d07a098724
fixed wrong help introduced with last change on 3Dvisualize
2014-09-19 09:50:26 +00:00
Martin Diehl
a7d831de06
forgot to import python module
2014-09-15 10:07:52 +00:00
Martin Diehl
5657119b11
updated post processing test: rotateData is doing something, corrected addDeviator defauls
2014-09-12 14:49:26 +00:00
Martin Diehl
f2c4db0bb5
correcting help and default, some comments
2014-09-12 14:46:12 +00:00
Martin Diehl
afb9a2186b
removed explicit default setting: type='string' and action='store'
2014-09-12 14:14:55 +00:00
Martin Diehl
9ba7851c14
fixed bug in calculation of spherical part. Variables in python functions are intent(inout) in Fortran language!
2014-09-12 13:13:05 +00:00
Martin Diehl
5f986f3d54
updated to contain latest python improvements
2014-09-10 16:14:37 +00:00
Philip Eisenlohr
5a159dcdfa
script to add scalar data and/or RGB color tuples to rectilinear VTK file (*.vtr)
2014-09-05 20:28:39 +00:00
Tias Maiti
e286cf4c74
fixed bug "theTable" instead of "table"
2014-09-03 14:53:12 +00:00
Tias Maiti
b566eed5a8
fixed error in last commit
2014-08-28 18:50:48 +00:00
Tias Maiti
5d96f62b44
fixed bug "theTable" instead of "table"
2014-08-28 17:37:27 +00:00
Martin Diehl
6cdcdecdfa
post processing scripts are working again.
...
@Philip: definining one offset for shiftData and one factor for scaleData for tensor/vector/special>1 seems to be more reasonable than per component
2014-08-25 21:13:39 +00:00
Martin Diehl
d93c40a3dd
fixed small bug ('theTable' instead of 'table') and simplified
2014-08-25 12:53:11 +00:00
Martin Diehl
1ba7cbb046
fixed small bug ('theTable' instead of 'table') and simplified
2014-08-25 12:39:12 +00:00
Martin Diehl
c7837e1f66
changed manual input/output close to class method
2014-08-22 16:58:53 +00:00
Philip Eisenlohr
99e3c9a397
fixed (potentially) buggy rotation of tensors. convention is:
...
with A v = b
v' = R v
A' = R A R^T
such that
A' v' = R A R^T R v = R A v (= R b = b', i.e. old result transformed into other coordinate basis)
2014-08-22 15:32:48 +00:00
Philip Eisenlohr
df27115472
extended "scalar" capabilities to "special" having arbitrary dimension (defaults to 1, i.e. former scalar case). Breaks backward compatibility since "--scalar" is now "--special". However, "-s" still works as before...
2014-08-22 15:25:51 +00:00
Philip Eisenlohr
9d26bfa375
try to go on despite crappy data (containing dead ends in the segment network)
2014-08-21 17:23:16 +00:00
Philip Eisenlohr
77df55c998
extended "scalar" capabilities to "special" having arbitrary dimension (defaults to 1, i.e. former scalar case). Breaks backward compatibility since "--scalar" is now "--special". However, "-s" still works as before...
2014-08-21 17:16:43 +00:00
Philip Eisenlohr
9aa22d4a08
simplified column key generation
2014-08-21 16:17:23 +00:00
Philip Eisenlohr
96b16dd97b
reshape "matrix" input data from (currently wrong) 9x1 to 3x3 layout.
...
simplified input validity check.
2014-08-21 16:14:06 +00:00
Philip Eisenlohr
0bcd508298
added new option "no-data" to omit output of microstructure data field, i.e. generates plain mesh only
2014-08-21 16:01:11 +00:00
Tias Maiti
b573d06c3f
fixed bug where initial microstructure array was allocated (factor 2) too large in anticipation of later 2D tiling.
2014-08-18 21:32:53 +00:00
Martin Diehl
c6eab9dab7
fixed wrong order in linear interpolation for stress
2014-08-18 20:09:09 +00:00
Martin Diehl
e637f6344c
added possibility to fit to more than one yield point, now using linear interpolation between around given threshold value
2014-08-18 18:21:36 +00:00
Martin Diehl
ad7fe1ecbc
fixed bug (wrong index in stress tensor for Hill48) and possible deadlock
2014-08-10 21:22:22 +00:00