Commit Graph

876 Commits

Author SHA1 Message Date
Jukka Aho b238f38d61 bugfix: maximum dimension of problem was miscalculated nnodes*dim, correct way is max_node_id*dim, this was causing bugs when node ids is not starting from 1 2017-02-25 07:18:51 +02:00
Jukka Aho 6f23e94a52 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 0ca7efd631 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 b9ffb90d0e Merge pull request #81 from JuliaFEM/fix_80
Fix FactCheck dependencies (issue #80)
2017-01-27 13:34:18 +02:00
Jukka Aho 40ef9388c3 Fix FactCheck dependencies (issue #80)
- Remove some obsolete tests related to Field.
- Fixed a test checking is header information found from source files
  (was using FactCheck and commented out).
- Add header information for all files (was missing from
  materials_plasticity.jl)
2017-01-27 10:15:52 +02:00
Jukka Aho c3b1adf715 Removed unused functions from postprocess.jl
These functions are not used in anywhere, maybe unnecessary.
2017-01-21 15:07:55 +02:00
Jukka Aho 500fbbcf9f Fixed multiple dispatch issues on io.jl
Related to issue #74, io.jl is no more modifying functionality of
LightXML
2017-01-21 12:32:53 +02:00
Jukka Aho b2be50757b Inceased coverage (#77)
- added Xdmf() to solver for two tests to test also creating Xdmf after solution.
2017-01-21 09:57:52 +02:00
Tero Frondelius 0083ec3090 Merge pull request #75 from ahojukka5/master
Removed unnecessary functions to increase code coverage
2017-01-10 09:17:21 +02:00
Jukka Aho 3262b0bf20 removed unnecessary function 2017-01-10 08:11:30 +02:00
Tero Frondelius 80d2ab20a3 Update .travis.yml 2017-01-09 17:54:28 +02:00
Jukka Aho ebf9162903 fixed function call for ideal_plasticity! to get correct arguments. 2017-01-09 13:36:08 +02:00
Jukka Aho 28c31b4c5a fixed test 2017-01-09 13:21:07 +02:00
Jukka Aho 7f4738cbe1 commented out non-working elemen tprint 2017-01-09 13:07:59 +02:00
Jukka Aho ff3ff13a1c umfpack solver: add diagonal terms to empty rows 2017-01-09 12:44:40 +02:00
Jukka Aho a149c33c73 fixed DCTV initialization 2017-01-09 12:43:22 +02:00
Jukka Aho b55ac0440c boundary condition returns always 1-dimensional array for elements, not 0-dimensional 2017-01-09 12:21:55 +02:00
Jukka Aho 3eba94a52d removed obsolete test files 2017-01-09 11:26:26 +02:00
Jukka Aho fb7676ef10 attempt to fix boundary condition 2017-01-09 11:26:04 +02:00
Jukka Aho be2adabf75 refactoring; works now in julia 0.5 2017-01-09 11:06:10 +02:00
Jukka Aho 85ca59df5d conversion rule from SparseVector to SparseVectorCOO 2017-01-09 11:01:18 +02:00
Jukka Aho cf762c4f25 fixed test 2017-01-09 09:32:15 +02:00
Jukka Aho 7ef7090462 add extra information when overconstrained situation 2017-01-09 09:32:02 +02:00
Jukka Aho 0913b23d01 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
ovainola 762acf5e10 Removing vonmises.jl includes (#74)
* Removing vonmises.jl includes

Removing all vonmises.jl includes, since file is no longer
to be found in the repository. Vonmises.jl had definitions
for elasticplastic material models, but those definitions
have been moved to problems_elasticity.jl/problems_elasticplastic.jl
files.

fix #73
2017-01-06 12:26:29 +02:00
Tero Frondelius c1de25b93e Update .travis.yml 2017-01-06 10:47:56 +02:00
Jukka Aho c81f3717a7 removed solver_utils.jl include 2017-01-06 10:27:39 +02:00
Jukka Aho 995c785ddb nonworking automatic overconstraint solver code removed 2017-01-06 10:07:58 +02:00
Jukka Aho d0023c5dd4 fixed test 2017-01-06 07:24:58 +02:00
Jukka Aho 3f4bcfbf7e fixed test 2017-01-06 07:22:09 +02:00
Jukka Aho d04a98f0e7 formatting 2017-01-06 07:00:38 +02:00
Jukka Aho 8354870568 improved docstring 2017-01-06 06:57:49 +02:00
Jukka Aho 53fb4f45a5 removed unmaintained code to wait for better days 2017-01-06 06:57:34 +02:00
Jukka Aho ea94f3a942 io tests 2017-01-05 11:29:29 +02:00
Jukka Aho 1630dd1ec0 dict fields 2017-01-05 11:03:19 +02:00
Jukka Aho 257d44162d fixed deprecation warning in aster_read_nodes 2017-01-05 09:41:34 +02:00
Jukka Aho cde0f15dcd no id in constructor 2017-01-05 09:32:43 +02:00
Jukka Aho 3ba1046e0b fixed element initialization 2017-01-05 09:30:41 +02:00
Jukka Aho 005bc248d0 fixed virtual element initialize 2017-01-05 09:29:16 +02:00
Jukka Aho 9fc3014c03 fixed deprecationwarning in get_node_sets 2017-01-05 09:25:12 +02:00
Jukka Aho db3921bb92 surface se type is UNKNOWN if not specified. 2017-01-05 09:23:16 +02:00
Jukka Aho 8ebe3ef111 fixed deprecationwarning 2017-01-05 09:17:25 +02:00
Jukka Aho 1d4a150022 fixed 2d finite sliding contact for julia 0.5 2017-01-05 09:09:11 +02:00
Jukka Aho 5601009bd7 SparseVectorCOO 2017-01-05 09:08:32 +02:00
Jukka Aho 78da7a9ecb connectivity information needs now to be given every element 2017-01-05 07:22:15 +02:00
Jukka Aho 7d46d33b6a removed obsolete code 2017-01-05 07:20:17 +02:00
Jukka Aho 1c8bc9bc64 removed null space related code as obsolete 2017-01-05 07:14:54 +02:00
Jukka Aho 89645be3bd added license string. this is not a test (tests missing) 2017-01-05 05:32:13 +02:00
Tero Frondelius d9cd61dcc3 Update .travis.yml 2017-01-04 13:24:24 +02:00
Frondelius 46ccba4cf1 Improving test coverage: test_lagrange.jl fixing copy-paste 2017-01-03 22:38:32 +02:00