Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of stuff... #125

Merged
merged 44 commits into from
Apr 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8069e65
rename boundary to face
KristofferC Mar 20, 2017
5331920
fix docs
KristofferC Mar 21, 2017
c7dcd9c
fixes
KristofferC Mar 21, 2017
d219820
remove old stuff
KristofferC Mar 21, 2017
7ba63e3
fix name
KristofferC Mar 21, 2017
f8d07f2
stuff
KristofferC Mar 21, 2017
8f6c6d6
grid stuff
KristofferC Feb 21, 2017
285b7c1
rename boundary to face
KristofferC Mar 21, 2017
d660d48
move files
KristofferC Mar 22, 2017
33da066
use our names cells for vtk export
KristofferC Mar 22, 2017
ce33724
update iterator to hold the current cell and the M parameterization
KristofferC Mar 22, 2017
558f2fa
remove some crap
KristofferC Mar 22, 2017
e241477
work
KristofferC Mar 23, 2017
7eddaf2
add notebook
KristofferC Mar 23, 2017
5d8d59d
stuff
KristofferC Mar 23, 2017
237a4bb
fix generator for hexahedrons
KristofferC Mar 23, 2017
7c7c0bd
update with a picture
KristofferC Mar 23, 2017
3424eb6
add the pic
KristofferC Mar 23, 2017
f276114
stuff
KristofferC Mar 23, 2017
0443910
add body load and face load
KristofferC Mar 23, 2017
1a3b56e
add hyperelasticity notebook
KristofferC Mar 23, 2017
ea1e699
add a heat example
KristofferC Mar 23, 2017
57aa6f8
add figures
KristofferC Mar 23, 2017
ee893e6
test new notebooksä
KristofferC Mar 23, 2017
1038455
add REQ
KristofferC Mar 23, 2017
87d9c59
some review fixes
KristofferC Mar 24, 2017
0730373
generalize grid
KristofferC Mar 25, 2017
401a26c
fixes
KristofferC Mar 25, 2017
d4203a5
add computation of normals
KristofferC Mar 25, 2017
a02a488
fix arguemnt order
KristofferC Mar 25, 2017
e060f51
remove grid in assemble function
KristofferC Mar 25, 2017
b2fdfc8
add back test for vector valued faces
KristofferC Mar 25, 2017
6a95fbc
use a scalarwrapper which performs and infers better than Ref
KristofferC Mar 25, 2017
d63bc03
add example for helmholtz equation
KristofferC Mar 25, 2017
28fc20f
get rid of some parameters
KristofferC Mar 26, 2017
f84fea5
add Cook membrane notebook
KristofferC Mar 26, 2017
9429445
fix bug when using sets in dbc
KristofferC Mar 26, 2017
b7bf0aa
fix some bounds stuff
KristofferC Mar 28, 2017
222d8e0
only use symmetric
KristofferC Mar 28, 2017
8d37f40
adress review and fix which test to disable
KristofferC Apr 4, 2017
393bcbf
reduce number of elements
KristofferC Apr 4, 2017
5926c2e
doc fixes and misc
KristofferC Apr 4, 2017
402b190
fix recomp
KristofferC Apr 4, 2017
4c1a176
only run notebooks on 0.6
KristofferC Apr 4, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ makedocs(
format = :html,
sitename = "JuAFEM.jl",
doctest = true,
strict = false, # VERSION.minor == 6, # only strict mode on release bot
strict = VERSION.minor == 6 && sizeof(Int) == 8, # only strict mode on 0.6 and Int64
pages = Any[
"Home" => "index.md",
"man/fe_intro.md",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/lib/maintypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ AbstractRefShape
QuadratureRule
Interpolation
CellValues
BoundaryValues
FaceValues
```
13 changes: 5 additions & 8 deletions docs/src/lib/utility_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ getorder
```@docs
reinit!
getnquadpoints
getquadrule
getfunctioninterpolation
getgeometryinterpolation
getdetJdV

shape_value
Expand All @@ -49,14 +46,14 @@ function_divergence
spatial_coordinate
```

## BoundaryValues
## FaceValues

All of the methods for [`CellValues`](@ref) apply for `BoundaryValues` as well.
In addition, there are some methods that are unique for `BoundaryValues`:
All of the methods for [`CellValues`](@ref) apply for `FaceValues` as well.
In addition, there are some methods that are unique for `FaecValues`:

```@docs
getboundarynumber
getcurrentboundary
getfacenumber
getcurrentface
```

## Assembling
Expand Down
4 changes: 2 additions & 2 deletions docs/src/man/fe_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ The integrals are evaluated using quadrature. In JuAFEM the stiffness matrix and

for qp in 1:Nqp
for i in 1:N
f[i] += shape_value(i) ⋅ f * dΩ
f[i] += (shape_value(i) ⋅ f) * dΩ
for j in 1:N
K[i,j] += shape_symmetric_gradient(i) : C : shape_symmetric_gradient(j) * dΩ
K[i,j] += (shape_symmetric_gradient(i) : C : shape_symmetric_gradient(j)) * dΩ
end
end
end
Expand Down
37 changes: 10 additions & 27 deletions examples/Yeoh_large_deformations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"using ForwardDiff\n",
"using Tensors\n",
"using JuAFEM\n",
"using CALFEM\n",
"using MAT\n",
"using NLsolve"
]
Expand All @@ -33,9 +30,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"immutable YeohMaterial{T}\n",
Expand Down Expand Up @@ -74,9 +69,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"# Takes the initial + current configuration, the fe_value object and the material parameters and\n",
Expand Down Expand Up @@ -122,9 +115,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"immutable CALMesh2D\n",
Expand Down Expand Up @@ -161,7 +152,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [],
Expand Down Expand Up @@ -192,9 +182,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"function grad!(fvec, X, x, mesh, material_parameters, dof_free, fe_values)\n",
Expand Down Expand Up @@ -226,9 +214,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"function vtkoutput(pvd, i, mesh, X, x, topology, f_react)\n",
Expand Down Expand Up @@ -261,9 +247,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"function go()\n",
Expand Down Expand Up @@ -329,7 +313,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [],
Expand All @@ -340,17 +323,17 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 0.5.0-dev",
"display_name": "Julia 0.5.1",
"language": "julia",
"name": "julia-0.5"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "0.5.0"
"version": "0.5.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}
450 changes: 450 additions & 0 deletions examples/cantilever.ipynb

Large diffs are not rendered by default.

Loading