Commit Graph

27 Commits

Author SHA1 Message Date
Jukka Aho ca7e2904cf Fix tests
* Fix deprecation warnings from tests
* Refactor tests so that ´@testset` is usually called in master file
  `runtests.jl`, not inside test file. Later on we can convert tests
  to examples.
* Syntax of tests now follow more closely syntax used currently in
  JuliaFEM. We have had earlier studies with different kind of syntaxes,
  now we have kind of explicit way to do things.
2018-09-06 13:34:26 +03:00
Jukka Aho 5b93c48a3a Make JuliaFEM to use Analysis type from FEMBase
`Analysis` is basically doing same than `Solver` before, but has a
slighly simpler structure and is more general.
2018-01-29 23:13:41 +07:00
Jukka Aho ecaf8cb7fc Use global timer to measure performance
This makes syntax a little bit easier. Also, measure more accurately performance
of modal solver under investigation.
2017-08-19 13:30:01 +03:00
Jukka Aho 96714acc18 Add new method to set properties for problem
```
update!(body.properties, "a" => "b", "c" => "d")
```

Usage example is shown in
`test_elasticity_2d_linear_with_surface_load.jl`.
2017-08-05 14:42:13 +03:00
Tony Kelman 4038c2f0ce Use @__DIR__ instead of Pkg.dir
this allows installing and loading the package from elsewhere
2017-08-05 12:02:00 +03:00
Jukka Aho 5327459ba4 Use TimerOUtputs.jl to measure time and memory performance
- Added TimerOutputs.jl to REQUIRE file
- JuliaFEM has now TimerOutput handle `to` and function `print_statistics()` to get summary of time and memory usage
- TimerOutputs is used in LinearSolver at the moment and tested in file `test_elasticity_2d_linear_with_surface_load.jl`
2017-04-11 10:39:18 +03:00
Jukka Aho b3f0531746 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 e64ed7f6a3 v0.5 fixes 2016-11-15 22:01:00 +02:00
Jukka Aho 95200a81e1 fixed deprecation warnings for 0.5 2016-11-13 13:24:08 +02:00
Jukka Aho b0485dc860 updated contact codes 2016-10-01 13:37:15 +03:00
Jukka Aho ea65cb94be new style dict field, xdmf improvements 2016-08-04 13:15:19 +03:00
Jukka Aho 1bd1ec9fa9 postprocessing utility 2016-07-14 12:43:41 +03:00
Jukka Aho 8f92a41b8a postprocessing 2016-07-13 08:07:08 +03:00
Jukka Aho d146e9c0a8 improved postprocessing capabilities; use dataframes to show results 2016-07-13 06:40:34 +03:00
Jukka Aho c935725d3a 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 4c45618330 fixed a lot of deprectionwarning issues with 0.5 2016-07-04 03:29:24 +03:00
Jukka Aho 757ba2b3d9 all tests pass now 2016-07-03 21:16:03 +03:00
Jukka Aho ce9eb715ec code refactoring 2016-06-27 16:11:33 +03:00
Jukka Aho 67aeddb868 modal solver + tie contact works now. dirichlet boundary and mpcs are eliminated properly before solution to get reduced system 2016-06-22 01:39:28 +03:00
Jukka Aho c02d510673 fixed a lot of tests 2016-06-19 20:01:37 +03:00
Jukka Aho 1ce7fd6096 changed creating elements + preprocess aster med file more general for other inputs too 2016-06-18 12:53:01 +03:00
Jukka Aho a0b4ffbf34 first version of modal analysis for natural frequencies 2016-06-17 02:10:17 +03:00
Jukka Aho d606bde168 integration points 2016-05-25 22:33:47 +03:00
Jukka Aho 043ba38d31 tests. dirichlet boundary condition + volume load fails for tetras for some reason 2016-05-25 02:44:04 +03:00
Jukka Aho 1760bd5733 elasticity tests 2016-05-24 08:01:41 +03:00
Jukka Aho d6dea85b9d some tests pass now 2016-05-22 02:34:38 +03:00
Jukka Aho e7f29b3c5a playing with an idea, should we have separate file for every test to make development easier...? 2016-02-13 01:15:02 +02:00