Commit Graph

56 Commits

Author SHA1 Message Date
Jukka Aho 1c67f1c1f8 Add postprocessing features (#100)
* refactored code for solvers.

* Added elementary tests for least-squares fitting of strain and stress fields

* A more realistic postprocess + Xdmf writing test

* removed debug keyword argument from test

* Rewrite update_xdmf!

New function to update Xdmf file no longer takes Solver object but
xdmf, problem, time and fields to write, for example

julia> update_xdmf!(xdmf, problem, 0.0, ["displacement", "temperature"])

All problems are written separately and put together into one
SpatialCollection, allowing to have more structured Xdmf and making
it easier to write complicated field configurations. Support for Xdmf
API 3.0 added.

* Support for Tensor6 field writing

* moved update_xdmf! to io.jl

* Removed some empty files

* Not use old Postprocessor, obsolete code.

* Not use old XDMF (obsolete code). Fixed test.

* removed some postprocessing to pass test, maybe we should drop abaqus.jl from code as obsolete

* add function get_temporal_collection back, it's used by update_xdmf of modal solver

* postprocess of boundary problems also

* added test for contact pressure. dl+quad test output was written in wrong file, fixed.

* postprocess for contact pressure

* contact pressure postprocess

* with boundary problems always store also the primary unknown field

* Change "reaction force" -> "lambda"

* testing postprocess of reaction force also

* sign convention
2017-03-21 08:36:18 +02:00
Jukka Aho c307c1482c Testing/code coverage (#83)
Change the code coverage to green. 

* removed duplicate code

* Removed unused code

* removed unmaintained code

* DCTI + DVTI refactored

* discrete fields refactored and tested

* fields are now tested quite well.

* Removed obsolete code not used anywhere

* Element descriptions to common dictionary

* size in global const dictionary also

* Added coverage to sparse tools and removed couple unused functions

* get nonzero rows from SparseMatrixCSC

* bugfix: extending element basis now working and tested

* Removed two unused functions from elements.jl

* removed useless function

* Useless conversion

* remove elasticity assembly using ForwardDiff because it's not used anywhere'

* Added basic testing for NURBS. Fixed bug in NSolid interpolation.

* removed unused functions

* Removed some debug stuff

* renamed file

* removed field assembly posthook, i think not good idea at all

* test for nnz(K) == 0 and automatic determination of dofs

* Testing that solver is throwing error if having problems with boundary assembly

* Removed some unused options. Refactoring.

* Moved solver non-related code to elements.jl

* Removed custom exception (no need)

* unneeded postprocess code

* More tests for NURBS elements.

* Removed unfinished .mail parser

* proper use of Logging package

* also read results

* renamed test file

* create_surface_elements accepts surface name in String now

* bugfix: remove zero rows from constraint matrix after manually removing dofs from some boundary assemblies.

* New test, displacement 3d patch test

* skip displacement field in surface element splitting if not defined

* test element splitting and linear surface elements, fails.

* Bugfix: Xdmf, not XDMF

* removed nonworking tests, requires bugfix

* abaqus_read_results is not working -> bug
2017-01-30 12:28:33 +02:00
Jukka Aho 9a382d9f7d possibility to manually remove dofs from problems by adding dof number to problem.assembly.removed_dofs vector 2017-01-09 08:56:31 +02:00
Jukka Aho 50187466f4 fixed deprecation warnings for 0.5 2016-11-13 13:24:08 +02:00
Jukka Aho c79b4d5514 updated contact codes 2016-10-01 13:37:15 +03:00
Jukka Aho 45f605bfc7 new style dict field, xdmf improvements 2016-08-04 13:15:19 +03:00
Jukka Aho 698e8d2dd7 lot of new tests, echangement of modal solver, eigenvalue analysis with mesh tie 2016-07-27 18:12:24 +03:00
Jukka Aho 8f49b4141c postprocessing utility 2016-07-14 12:43:41 +03:00
Jukka Aho 16c0a925ba improved postprocessing capabilities; use dataframes to show results 2016-07-13 06:40:34 +03:00
Jukka Aho 1344d3b95c analytical tests, hollow sphere and radial displacement + longitudinal vibration of rod (modal analysis) 2016-07-10 23:35:17 +03:00
Jukka Aho a75aaecc97 julia v0.5 compatibility. test -> testing. new elements tri7 and wedge6. abaqus inp reading. more integration rules. 2016-07-10 04:26:21 +03:00
Jukka Aho cd891aadda 2d finite sliding autodiff version i think it works now 2016-07-04 21:47:49 +03:00
Jukka Aho 65e11d917f fixed a lot of deprectionwarning issues with 0.5 2016-07-04 03:29:24 +03:00
Jukka Aho 0d8caadbdf all tests pass now 2016-07-03 21:16:03 +03:00
Jukka Aho 58dd90a169 heat solver tests etc 2016-07-03 05:01:18 +03:00
Jukka Aho 13e57b198c heat problem 2016-07-01 02:55:56 +03:00
Jukka Aho 6993828927 code refactoring 2016-06-27 16:11:33 +03:00
Jukka Aho 90f7c581c5 refactor contact and tests 2016-06-25 04:12:53 +03:00
Jukka Aho 8bd32cbeca fixed a lot of tests 2016-06-19 20:01:37 +03:00
Jukka Aho 84bb370cea first version of modal analysis for natural frequencies 2016-06-17 02:10:17 +03:00
Jukka Aho 06afb89dca linear buckling analysis matrices 2016-05-30 01:03:34 +03:00
Jukka Aho d429e5b2fc calculate stress, interpolate stress to nodes using lsq fitting 2016-05-28 21:39:29 +03:00
Jukka Aho b3bacc653d fixed bug related to strain component ordering and internal force vector 2016-05-27 17:45:12 +03:00
Jukka Aho 53d640f477 some tests pass now 2016-05-22 02:34:38 +03:00
Jukka Aho f22a9c7df0 autodiff version works for 2d 2016-02-24 01:20:39 +02:00
Jukka Aho 11569d8961 Mortar autodiff tests... 2016-02-23 17:52:09 +02:00
Jukka Aho 65eb014de9 first attemps to make properly linearized version of mortar projection for finite sliding. not working at the moment, it has convergence issues. 2016-02-23 11:32:53 +02:00
Jukka Aho 21d7592c80 Incremental formulation works now, also finite sliding without proper linearization (very slow convergence) 2016-02-16 17:40:11 +02:00
Jukka Aho a81f3319ca test models and mortar stuff 2016-02-16 12:25:24 +02:00
Jukka Aho 9eed19de82 removed overengineering 2016-02-13 01:10:30 +02:00
Jukka Aho 7cc14c57c8 minor fixes to incremental formulation 2016-02-11 02:51:27 +02:00
Jukka Aho 2bb25c4489 fixes & integration rules 2016-02-06 21:08:35 +02:00
Jukka Aho ff6abfc5e8 small bug fixes 2016-02-05 12:27:36 +02:00
Jukka Aho 2ac577d3f6 functions to find nodes from dofs and vice versa 2016-02-05 11:31:23 +02:00
Jukka Aho 139eff7f55 update primary field to boundary problems also. 2016-02-04 17:32:51 +02:00
Jukka Aho 6652f48ea2 fixes 2016-02-03 20:39:03 +02:00
Jukka Aho 90319b2644 Major changes in data structures:
- Combined FieldAssembly and BoundaryAssembly to Assembly
- Combined FieldProblem and BoundaryProblem to Problem
- FieldProblem and BoundaryProblem are now abstract types
- Renamed stiffness_matrix, mass_matrix and force_vector to K, M, f for
  easier notation
- Problems are no more abstract types but concrete types, see
  elasticity.jl for example
- Combined linear_elasticity.jl and elasticity.jl
- Removed obsolete code directsolver.jl
- Almost all tests probably fail at this point
2016-02-03 06:49:42 +02:00
Jukka Aho 60046942e5 new style concrete problem 2016-02-02 22:22:21 +02:00
Jukka Aho 927cf788dc problem -> assembly 2016-02-01 09:12:41 +02:00
Jukka Aho 225a1dc165 bug fix post -> pre 2016-01-02 00:17:01 +02:00
Jukka Aho 74e9282697 its now possible to define several pre and postprocessors for assemblies with custom arguments; see test/test_mortar_2d_contact.jl for concrete example 2016-01-01 20:34:10 +02:00
Jukka Aho 01cbf2516f lets use FieldProblem(ElasticityProblem, ...) instead of FieldProblem{ElasticityProblem}(...) so that we can extend FieldProblem and BoundaryProblem without redefining everything in problems. 2016-01-01 18:52:40 +02:00
Jukka Aho a586de6966 template 2015-12-31 12:35:45 +02:00
Jukka Aho ffb51d251b calculate_nodal_vector: calculate for all dimensions using single factorization 2015-12-31 08:38:33 +02:00
Jukka Aho 2667c641ab calculate nodal field in least squares sense 2015-12-31 07:40:38 +02:00
Jukka Aho bba9d380fb more general way to define saddle point problem. 2015-12-23 01:52:28 +02:00
Jukka Aho fff0173c2d mortar tests, bug finding 2015-12-17 15:33:51 +02:00
Jukka Aho 92f52e34e7 substructuring, fixed tests, possibility to save to integration points 2015-11-30 16:04:13 +02:00
Jukka Aho 8517290ab3 removed Equation type from code 2015-11-27 10:10:00 +02:00
Jukka Aho ebad4a3062 2d mortar 2015-11-18 01:19:04 +02:00