Commit Graph

938 Commits

Author SHA1 Message Date
Jukka Aho 720d76a4ba Eliminate Dirichlet boundary conditions differently
Slicing is very expensive operation on sparse matrices. Avoid slicing
by calculating matrix product `K_red = C1*K*C1`, where C1 is diagonal
matrix. This should be much cheaper.
2017-08-20 12:13:12 +03: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 0fffdb52ba Test group_by_element_type 2017-08-19 00:01:47 +03:00
Jukka Aho 675f787c9a Preallocate matrices in Elasticity problem
Now style is to assemble all same kind/dimension elements at same time
in one function call, so it's possible to allocate all necessary
matrices only one time.
2017-08-18 23:27:26 +03:00
Jukka Aho 7eba2f782f New function group_by_element_type
Function groups a list of elements to several lists, where each
list contains elements of particular type.
2017-08-18 20:15:45 +03:00
Jukka Aho a24a5945a1 Fix deprecation warnings when using Julia 0.6.0 2017-08-18 17:45:52 +03:00
Jukka Aho ef66a8f74b Assemble several elements at a time
Now assemble! takes a vector of elements as input. This makes it
possible to preallocate memory for common matrices making code super
fast.
2017-08-17 17:49:39 +03:00
Jukka Aho aabcda2e26 Implement new function create_nodal_elements
This function can be used to create elements from node set defined
in mesh. Resulting elements are of type Poi1, that is, they don't
have any volume but it's still possible to add boundary conditions
to them which are then enforced in discrete sense.
2017-08-17 15:53:20 +03:00
Jukka Aho 89af6faad5 Fix test
Now both JuliaFEM and JuliaFEM.Preprocess export add_elements! and
it must be spesifically pointed out which one is used in test.
2017-08-16 17:20:55 +03:00
Rapo 367c4711b3 Implement new function add_elements!
Add new elements to the problem.
2017-08-16 17:20:55 +03:00
Jukka Aho 1966b7f894 Remove functions used rarely
A new problem can be defined with 8(!) different styles. Let's remove
the ones not used often.
2017-08-16 16:57:56 +03:00
Jukka Aho a6b198b1ab Templating data type of Field
Use template in type Field to make type stabile code. This should fix
problems related to type stability.
2017-08-16 00:00:03 +03:00
Jukka Aho ab7a661712 New test 2017-08-15 15:49:50 +03:00
Jukka Aho 7efa5aa01e Fix return types for fields not defined
Problem arises typically when boundary condition is created using
"nodal" elements of type Poi1, but forget to define geometry and
```solvers("geometry", 0.0)``` fails in Xdmf update function. Fixed.
2017-08-15 15:49:50 +03:00
Jukka Aho 1505205dcd use FEMBasis / BasisInfo structure
Calculate basic element info using BasisInfo
2017-08-14 21:20:44 +03:00
Jukka Aho 08055ecd21 add *.mem and *.cov to .gitignore 2017-08-14 20:41:16 +03:00
Jukka Aho 5357ed88c8 Set up entry point for element assembly
From here we can preallocate matrices to improve efficiency of code.
2017-08-14 18:26:37 +03:00
Jukka Aho b6b0bc3f55 Change coords field type from Point to Tuple
Change to Tuple, Array is allocating memory.
2017-08-14 17:10:02 +03:00
Jukka Aho 681d53ee9a Separate problems_elasticity.jl
Have separate file problems_elasticity_2d.jl for plane stress, plane
strain, axisymmetric etc. problems.
2017-08-13 22:49:05 +03:00
Jukka Aho 4939f49760 Remove obsolete code from heat assembly
Postprocess-function is deprecated and not used anywhere.
2017-08-13 22:45:11 +03:00
Jukka Aho d88dc8742e Remove needless stuff from postprocess_utils.jl
Not needed in core code.
2017-08-13 22:28:13 +03:00
Jukka Aho b87952ae14 Add another loop to assembly procedure
Yet another loop, but this way we can preallocate matrices when
constructiong local matrices of elements with same dimensions (which is
the case in practice)
2017-08-13 22:16:53 +03:00
Jukka Aho a11fafc25b use TimerOutsputs to measure performance 2017-08-13 14:37:44 +03:00
Jukka Aho 4d0dbc44a5 add simple usage example 2017-08-05 15:07:56 +03:00
Jukka Aho 6893ec3fa8 basic doc + @autodoc functions 2017-08-05 15:07:56 +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
Jukka Aho 0f0c49da62 Cleanup of obsolete files
A lot of old files from old documentation systems etc. is in package.
These are now removed or moved. Old notebooks are in docs/tutorials.
This PR closes issue #124.
2017-08-05 12:08:46 +03:00
Jukka Aho 3d3e9bb441 Calculate shape functions using FEMBasis.jl
A lot of code is moved to FEMBasis.jl regarding
calculating basis / shape functions of finite elements.

* add FEMBasis to REQUIRE
* remove obsolete files
* remove obsolete test files
* make integration point iterable
* loosen type definitions
* get length of element rather from basis than connectivity
* calculate midpoint of reference element
* wrong input argument to eval_basis! fixed
2017-08-05 12:03:05 +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 b7880906ee separate optomechanical experiments to own package 2017-08-04 22:29:25 +03:00
Jukka Aho cfba8b62f0 add package dependency AsterReader.jl 2017-08-03 21:06:55 +03:00
Jukka Aho ce9b028d26 add package dependency FEMQuad.jl 2017-08-03 20:29:19 +03:00
Jukka Aho 724196b4a4 AbaqusReader.jl tagged, added to REQUIRE 2017-08-02 01:30:32 +03:00
Jukka Aho 648bbe2a40 use AsterReader.jl (#136)
Functions used to read Code Aster file format are now in separate package AsterReader.jl
2017-07-29 13:57:27 +03:00
Jukka Aho cbc85ee665 Move Abaqus-related functions to own file (#137) 2017-07-29 10:51:19 +03:00
Jukka Aho e46c0a1ad4 Use FEMQuad.jl to calculate quadrature rules for elements (#134) 2017-07-23 18:42:04 +03:00
Vlad Stoian ef0897f4b2 Change README link to new CONTRIBUTING.rst (#132) 2017-07-22 17:24:10 +03:00
Jukka Aho e13d6482ce Use PkgTestSuite for CI (#131)
This standardizes the CI process between JuliaFEM packages
2017-07-21 16:28:03 +03:00
Jukka Aho 2af7e0e1bb move cloning of AbaqusReader.jl from .travis to build/deps.jl (#130) 2017-07-21 15:57:46 +03:00
Jukka Aho e97f9b070a REQUIRE: change julia 0.5 -> 0.6 (#129) 2017-07-21 11:08:17 +03:00
Jukka Aho a666bb4bd8 Use package AbaqusReader.jl (#127)
Source code related to read and parse ABAQUS .inp files is now living in
it's own repository `AbaqusReader.jl` and in this commit we cleanup the
same files from this repository.

- add AbaqusReader to .travis.yml because it's not registered package yet
- initialize Mesh from AbaqusReader.jl dict
- remove ABAQUS tests and files moved to AbaqusReader.jl
- remove references to old module Abaqus
- move ABAQUS code to preprocess.jl (what is left)
- close issue #122
- close issue #55
2017-07-21 00:40:52 +03:00
Jukka Aho 9ad66be08b 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 e185b3cccb Deploy documentation from 0.5 build 2017-07-20 17:17:12 +03:00
Jukka Aho 49b9642e6a Measure testing time for each test file separately (#126)
Uses TimerOutputs.
2017-07-20 17:11:37 +03:00
Jukka Aho 5e3a0c644e add CheckHeader and CheckTabs (#125)
* add `CheckHeader.jl` and `CheckTabs.jl` to `travis.yml`
* fix tab -> 4 spaces
2017-07-20 17:10:15 +03:00
Tony Kelman b1641579f2 use version number instead of release in .travis.yml (#109)
release will change over time, but your REQUIRE file says this
package supports julia 0.5 so it should continue to be tested
2017-07-20 16:04:21 +03:00
Jukka Aho 436bf119b2 Set up documentation + lint (#121)
- remove some automatically generated stuff not should even be in
repository
- set up lint + Documents.jl in same way it is defined in freshly started projects
- add lint + doctest to after_success so that build pass, these needs to be fixed later
- build is failing on nightly (0.7) but it's ok for release (0.5.2)
- Documenter.jl supports doctests, so this closes least #23
- build system is now on Travis-CI completely, so this closes also #68
2017-07-19 07:34:38 +03:00
Jukka Aho 9a8b3b94b7 Merge pull request #112 from JuliaFEM/fix/aster_preprocess
Reading Code Aster med mesh properly
2017-05-30 11:34:34 +07:00
Jukka Aho c0bf19687a Reading Code Aster med mesh properly
- MED file actually supports multiple element sets or node sets for
  single element/node. This is now implemented.
- Minor cleanup of code, etc..
- Fixes issue #111.
2017-05-30 06:26:12 +03:00
Jukka Aho 4a857f4f62 Merge pull request #110 from AndiMD/Pyr5
Pyr5 element implemented.
2017-05-29 12:03:39 +07:00