Commit Graph

35 Commits

Author SHA1 Message Date
Jukka Aho fceb06416e Make code 0.6 compatible (#128)
* running v0.6 conversion code proposed by @ovainola in #108.
* change travis so that build is done using 0.6
* documentation is build from 0.6
* fix most of deprecation warnings
* fix test to pass 0.6
2017-07-20 20:46:57 +03:00
Jukka Aho bb06b151cb problems_mortar_3d.jl: rename function contains to approx_in (#86)
* problems_mortar_3d.jl: rename function contains to approx_in

See issue #85. `contains` is now renamed to `approx_in`. I also
switched argument order, so this function is now called in a same
way function `in()`. Usage example:

    julia> P = Vector[[1.0, 1.0], [2.0, 2.0]]
    2-element Array{Array{T,1},1}:
     [1.0,1.0]
     [2.0,2.0]

    julia> q = [1.0, 1.0] + eps(Float64)
    2-element Array{Float64,1}:
     1.0
     1.0

    julia> in(q, P)
    false

    julia> approx_in(q, P)
    true

Also added docstring and usage example.

* Removed `importall base` from code
2017-02-01 10:42:31 +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 64ba9e742c removed unnecessary function 2017-01-10 08:11:30 +02:00
Jukka Aho 0c4a85d1a5 fixed DCTV initialization 2017-01-09 12:43:22 +02:00
Jukka Aho e4cc2a6a03 possibility to slice DVTI field, i.e. f[1:3] works now 2016-12-15 12:41:22 +02:00
Jukka Aho bd97a2b039 if number of shape functions differs from length of field, use length of shape functions (or length of partial derivatives of them) in interpolation, this makes it possible to have longer fields, helping defining elements with variable number of shape functions. 2016-12-15 09:17:31 +02:00
Jukka Aho a8ff9f50f7 v0.5 fixes 2016-11-15 22:01:00 +02:00
Jukka Aho 50187466f4 fixed deprecation warnings for 0.5 2016-11-13 13:24:08 +02:00
Jukka Aho 45f605bfc7 new style dict field, xdmf improvements 2016-08-04 13:15:19 +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 65e11d917f fixed a lot of deprectionwarning issues with 0.5 2016-07-04 03:29:24 +03:00
Jukka Aho a0d0b48434 docstrings + 0.5 2016-07-03 21:45:22 +03:00
Jukka Aho 58dd90a169 heat solver tests etc 2016-07-03 05:01:18 +03:00
Jukka Aho 6993828927 code refactoring 2016-06-27 16:11:33 +03:00
Jukka Aho b000f41557 integration points 2016-05-25 22:33:47 +03:00
Jukka Aho 283621f4b1 rewrite elements 2016-05-22 00:22:17 +03:00
Jukka Aho 7b60f489a9 3d still not converging 2016-03-01 05:52:42 +02:00
Jukka Aho f22a9c7df0 autodiff version works for 2d 2016-02-24 01:20:39 +02:00
Jukka Aho 94d0739e86 Forwarddiff elasticity working again. 2016-02-23 15:00:30 +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 de3383288a little changes 2016-02-10 22:21:30 +02:00
Jukka Aho a535e30d5a support multiplication of DVTI by a constant 2015-12-30 05:44:07 +02:00
Jukka Aho aa1130d7e3 define "local" coordinate system for elements 2015-12-20 21:17:47 +02:00
Jukka Aho 4b07da194a improved performance 2015-12-04 07:27:40 +02:00
Jukka Aho 8517290ab3 removed Equation type from code 2015-11-27 10:10:00 +02:00
Jukka Aho 18ae2ee5b7 fields, solvers 2015-11-20 08:48:15 +02:00
Jukka Aho 9b8842f5f3 updated developers guide + tests 2015-11-11 00:54:19 +02:00
Jukka Aho 75e6ed8fcb defining basis. still needs some rethinking... 2015-11-02 21:25:02 +02:00
Jukka Aho 39241b514a little tuning of test, updated tests, @debug-macro, fixed notebook conversion to pdf 2015-11-02 11:46:37 +02:00
Jukka Aho ff60b7ed3a forget couple new files 2015-11-01 18:47:33 +02:00
Jukka Aho 36061c5c52 removed fields.jl 2015-09-25 17:49:21 +03:00
Jukka Aho 1d0fa47e43 moved stuff from fields.jl to types.jl 2015-09-25 17:49:01 +03:00
Jukka Aho 894cbdefb6 Added drop in replacement for fields with time and increment 2015-09-25 00:55:06 +03:00