Commit Graph

788 Commits

Author SHA1 Message Date
Martin Diehl b51c3b5a07 handling files without LF at last line correctly 2018-10-08 23:27:06 +02:00
Philip Eisenlohr 225a48021d foramtting of random_seed output to align with rest 2018-10-08 17:01:56 -04:00
Martin Diehl 78b5fa466d fixed hick-up in lattice definitions 2018-10-08 19:32:18 +02:00
Martin Diehl 71d80cc203 sanity check too strong
still makes sense to have, but some tests need to be updated before
setting it active again
2018-10-08 13:27:15 +02:00
Martin Diehl 2a79f7ea61 taking care of c/a for hex and bct 2018-10-08 13:25:40 +02:00
Martin Diehl 5efcad952a avoid type conversion
more systematic checking of correct input parameters
2018-10-08 08:28:56 +02:00
Martin Diehl 302cf9b6c2 bugfix, now inline with code from initializeStructure 2018-10-07 22:16:18 +02:00
Martin Diehl facb1c2407 unified error checking 2018-10-07 20:03:45 +02:00
Martin Diehl 0e17b17b90 using full precision 2018-10-07 18:40:02 +02:00
Martin Diehl 34e0aca564 using full precision 2018-10-07 18:18:24 +02:00
Martin Diehl a53488d666 calculation of slip/twin/trans/damage-coordinate system was wrong 2018-10-07 15:44:13 +02:00
Martin Diehl 032c35a499 WIP: Calculation of elasticity matrices for twin and trans 2018-10-06 10:42:25 +02:00
Martin Diehl 3a2f86df1c non-schmid is always bcc 2018-10-05 23:04:06 +02:00
Martin Diehl 81a77b508a check for array size was off by 1 2018-10-05 22:46:53 +02:00
Martin Diehl 2a51e528bd Merge branch 'development' into 44-column-major-access-to-interaction-matrices 2018-10-05 11:11:20 +02:00
Martin Diehl 40cf7f134d Merge branch '44-column-major-access-to-interaction-matrices' of magit1.mpie.de:damask/DAMASK into 44-column-major-access-to-interaction-matrices 2018-10-05 11:08:29 +02:00
Martin Diehl aa34b83978 avoid array out of bounds
allows to handle un- or partly defined non schmid coefficients
2018-10-05 10:36:44 +02:00
Martin Diehl a560fff2ac [skip ci] [skip sc] generic interfaces for HDF5 operations
most existing HDF5 functions are only designed for writing output files
and more general functionality is needed for storing the restart data
2018-10-05 09:03:20 +02:00
Martin Diehl 47a748831f Cannot write out resolved stress including non schmid
Would need to write out tau_pos and tau_neg separately, so limit to
resolved stress in the sense of Schmid
2018-10-05 07:26:13 +02:00
Martin Diehl 6ccbc5e4e6 characteristing shear is defined per system 2018-10-05 07:20:51 +02:00
Martin Diehl e74a852ef7 new style is noticable slower
runtime (polycrystal example) increased from 70s to 90s.
Need to figure out how to write readable AND fast code
2018-10-05 06:38:20 +02:00
Martin Diehl 3a00fcde16 WIP: characteristic shear calculated in lattice 2018-10-05 05:09:31 +02:00
Martin Diehl fda2676365 calculate only if required 2018-10-05 04:54:47 +02:00
Martin Diehl 79b0efc678 also using nonSchmid matrix from lattice 2018-10-04 21:20:42 +02:00
Martin Diehl 35956ce0c8 needs to be multiplikative 2018-10-04 21:06:57 +02:00
Vitesh Shah a6ebdfc1ff Reading and writing not very efficient method 2018-10-04 17:00:24 +02:00
Martin Diehl cd7f285686 prevent use of unallocated array
interaction matrices are used even if no slip/twin systems defined
2018-10-04 07:17:00 +02:00
Martin Diehl dc289a278b clearer code
homogenization is defined per element, not per IP
hence, use material_homogenizationAt instead of deprecated
material_homog which pretends a dependency on the integration point
2018-10-04 06:48:33 +02:00
Martin Diehl df473302f4 consistent (and better understandable) names 2018-10-04 06:03:48 +02:00
Martin Diehl f494803c76 fixed tangent calculation 2018-10-03 16:40:40 +02:00
Martin Diehl ec77d4450b checking for required things 2018-10-03 09:17:06 +02:00
Martin Diehl db645efda7 function to calculate nonSchmid matrix 2018-10-03 08:49:23 +02:00
Martin Diehl 103b46ecbb don't repeate code over different plastic_xxx modules 2018-10-03 07:58:02 +02:00
Martin Diehl 89e03be699 also building interactions for slip-twin and twin-slip 2018-10-03 07:51:11 +02:00
Martin Diehl 0cac6ce0d2 allocating to wrong size 2018-10-03 07:36:57 +02:00
Martin Diehl ba383336f5 only one projection matrix required for all (non)schmid projections
following the example from plastic_nonlocal
2018-10-03 07:23:18 +02:00
Martin Diehl d718521890 polishing 2018-10-03 07:13:30 +02:00
Martin Diehl 67c55965e9 segmentation fault, tried LHS with scalar
Nxx per system is stored in LATTICE_yyy_NxxxSYSTEM
Using CAPITALS for parameters improves readbility
2018-10-03 06:45:42 +02:00
Martin Diehl 97d2c2b353 mesh_element(1) has a size of 4
fixed sigsegv
2018-10-02 22:54:44 +02:00
Martin Diehl 384a785805 more sevice functions use
still trying
2018-10-01 23:02:31 +02:00
Martin Diehl ff2614b757 using 'service functions' from lattice
get rid of many global array on the long run
2018-10-01 22:48:14 +02:00
Martin Diehl a943940760 Merge branch 'development' into 44-column-major-access-to-interaction-matrices 2018-10-01 22:32:38 +02:00
Martin Diehl 98296a978e Merge branch 'development' into 29-rename-mesh_element-array 2018-10-01 22:29:31 +02:00
Martin Diehl 27bde05529 Merge branch '38-introduce-rudimentary-PETSc-based-FEM-solver' into 'development'
Resolve "Introduce Rudimentary PETSc based FEM solver"

Closes #38

See merge request damask/DAMASK!41
2018-10-01 21:10:03 +02:00
Franz Roters d5cf7d2144 Merge branch '19-NewStylePhenopowerlaw' into 'development'
Resolve "New coding style for phenopowerlaw"

See merge request damask/DAMASK!39
2018-10-01 16:08:05 +02:00
Martin Diehl 49a4202e26 not needed here 2018-09-29 10:31:45 +02:00
Martin Diehl 14509876d4 error == 0 is normal termination 2018-09-29 09:57:53 +02:00
Martin Diehl 637544509e rewind needed
the file is read twice from beginning to end
2018-09-28 10:06:21 +02:00
Vitesh Shah 8619b49e20 made it nonexecutable 2018-09-28 08:47:00 +02:00
Vitesh Shah 8bd0cb3b25 Made it non executable 2018-09-28 08:45:52 +02:00
Vitesh Shah 6efde5f4ce Combined the dataset creation and writing dataset in single subroutine. Created group for looped writing. 2018-09-28 08:41:29 +02:00
Martin Diehl b141252f1f doing the same things in the same way in both solvers 2018-09-28 08:06:22 +02:00
Martin Diehl d1f614991e merging good style mutually FEM <-> Spectral 2018-09-28 07:49:52 +02:00
Martin Diehl 6780217193 adopted from DAMASK_spectral 2018-09-28 07:25:32 +02:00
Martin Diehl e8f687a99c typo, Abaqus/Marc did not compile 2018-09-27 20:18:37 +02:00
Martin Diehl 822bc4dbbf Merge branch 'development' into 29-rename-mesh_element-array 2018-09-27 20:12:09 +02:00
Martin Diehl 4c057ba529 both solvers can share quit 2018-09-27 20:09:59 +02:00
Chuanlai Liu b391ad304d tensor input/output is of the form 11,12,13, 21,22,23, 31,32,33. Thus row index i is slow, while column index j is fast 2018-09-27 11:53:45 +02:00
Martin Diehl 6509775d41 cleaning
avoiding compiler warnings and confusion of the user
2018-09-27 08:23:30 +02:00
Vitesh Shah 5b52ac91e5 Revert "made it non executable"
This reverts commit 05c784aefc.
2018-09-26 09:28:47 +02:00
Vitesh Shah 2edf8f7f53 Need to commit this before reverting the changes in other files 2018-09-26 09:21:53 +02:00
Vitesh Shah 3408282755 windows and linux editor incompatibility 2018-09-25 16:49:25 +02:00
Vitesh Shah 05c784aefc made it non executable 2018-09-25 16:48:02 +02:00
Vitesh Shah b71896d4b6 writing of multidimensional dataset into hdf5 does not appear as multiple pages in hdfviewer 2018-09-25 16:42:43 +02:00
Martin Diehl ceb385ef39 calcMode not needed for spectral and FEM 2018-09-23 21:31:30 +02:00
Martin Diehl c42eb87a33 using arrays with new names 2018-09-23 20:53:35 +02:00
Martin Diehl 72b87b0a9b better name 2018-09-23 19:58:43 +02:00
Martin Diehl f701910c71 Merge branch '38-introduce-rudimentary-PETSc-based-FEM-solver' of magit1.mpie.de:damask/DAMASK into 38-introduce-rudimentary-PETSc-based-FEM-solver 2018-09-23 19:32:19 +02:00
Martin Diehl ebef12e446 syntax errors in declaration 2018-09-23 19:04:17 +02:00
Martin Diehl 67483487ea more descriptive names 2018-09-23 18:50:54 +02:00
Martin Diehl 854d99250c mesh_element(1,:) only used for debug output
set to -1 at the moment to indicate that it is not used.
Re-implementation should be done for MSC.Marc and Abaqus only.
2018-09-23 18:42:49 +02:00
Martin Diehl 4b14cc5560 calcmode only needed for Abaqus and MSC.Marc 2018-09-23 18:06:18 +02:00
Martin Diehl cf6d388a6b consistent order of solver-specific functionality 2018-09-23 17:57:48 +02:00
Martin Diehl 5936397ae7 introducing better names
allows further simplifications as we do not store max and per elem
values any more for number of integration points and number of cell
nodes
2018-09-23 17:37:57 +02:00
Martin Diehl 2fe2c4ca45 leaner syntax with sourced allocation 2018-09-23 17:26:13 +02:00
Martin Diehl 51390b1acf Nelems /= NcpElems only in case of Abaqus/MSC.Marc 2018-09-23 17:05:01 +02:00
Martin Diehl 5814e07021 simplified 2018-09-23 16:55:03 +02:00
Martin Diehl e3f2ad34b2 not needed 2018-09-23 16:32:13 +02:00
Martin Diehl bd60018513 not needed for spectral 2018-09-23 15:57:21 +02:00
Martin Diehl c1b8854132 only needed for commercial solvers 2018-09-23 15:31:19 +02:00
Martin Diehl 4862aca340 grouping solver specific variables for better readability 2018-09-23 15:27:51 +02:00
Martin Diehl db45b7615a drop support for heterogeneous meshes
heterogeneous meshes are neither advisable nor typically used
2018-09-23 15:24:14 +02:00
Martin Diehl 519cd840bd cleaning 2018-09-23 15:19:23 +02:00
Pratheek Shanthraj 109ed4308f change in tabulation order. should now be working correctly 2018-09-23 03:14:23 +02:00
Martin Diehl 9eb318b9bf Merge branch '38-introduce-rudimentary-PETSc-based-FEM-solver' of magit1.mpie.de:damask/DAMASK into 38-introduce-rudimentary-PETSc-based-FEM-solver 2018-09-22 14:54:58 +02:00
Pratheek Shanthraj d9bdf53628 quadrature weights defined twice for some reason 2018-09-22 12:55:23 +02:00
Pratheek Shanthraj ffcadc1d86 use displacements instead of coordinates 2018-09-22 12:54:45 +02:00
Pratheek Shanthraj 4a25520828 removed debug write statements 2018-09-22 12:53:33 +02:00
Pratheek Shanthraj 6c21c60c70 corrected nbasis 2018-09-22 12:53:02 +02:00
Pratheek Shanthraj becd959913 dmda not needed 2018-09-22 12:52:29 +02:00
Pratheek Shanthraj 81ced06393 order --> degree 2018-09-22 12:51:02 +02:00
Pratheek Shanthraj 22c1436af6 working with petsc 3.10 2018-09-22 12:49:56 +02:00
Pratheek Shanthraj c9a4609290 reading in BCs correctly 2018-09-22 12:48:57 +02:00
Martin Diehl 42bc1b468a cleaning+adopting to petsc-3.10 2018-09-22 11:19:08 +02:00
Martin Diehl a95e2b8083 Merge branch 'PETSc3.10' into 38-introduce-rudimentary-PETSc-based-FEM-solver 2018-09-22 10:36:31 +02:00
Martin Diehl f590851a78 Merge branch '38-introduce-rudimentary-PETSc-based-FEM-solver' of magit1.mpie.de:damask/DAMASK into 38-introduce-rudimentary-PETSc-based-FEM-solver 2018-09-22 10:33:20 +02:00
Martin Diehl 80914470cc most probably pInt and PetscInt is the same 2018-09-22 10:32:26 +02:00
Jaeyong Jung 4ddb8d843c modified DMGetDefaultGlobalSection to DMGetGlobalSection 2018-09-21 14:08:44 +02:00
Jaeyong Jung 9150844c96 Merge branch '38-introduce-rudimentary-PETSc-based-FEM-solver' of magit1.mpie.de:damask/DAMASK into 38-introduce-rudimentary-PETSc-based-FEM-solver 2018-09-21 10:13:27 +02:00
Martin Diehl 180105d3ce external statements will not work if interfaces exist
we're currently providing a patch for PETSc with interfaces for all
functions that we use
2018-09-21 08:25:35 +02:00