Skip to content

Commit 152a62f

Browse files
committed
Merge branch 'master' of https://github.com/feelpp/toolbox
2 parents 09e9555 + 37b1b26 commit 152a62f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+293
-348
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11

22
fe-approximation=P2 #P1,P2
3+
directory=toolboxes/solid/ribs/disk2/P2
34

45
[solid]
56
filename=$cfgdir/disk.json
67

8+
mesh.filename=$cfgdir/disk2.msh
9+
gmsh.partition=1
10+
711
on.type=elimination_symmetric
812

913
# # precondtioner config
1014
pc-type=gamg #lu,gasm,ml
1115
ksp-monitor=1
1216
# ksp-converged-reason=1
1317

14-
mshfile=$cfgdir/disk1.msh
15-
#[solid.gmsh]
16-
1718
[ts]
1819
steady=true
1920

20-
[exporter]
21-
directory=applications/models/solid/disk1/$solid_tag

examples/modules/csm/pages/ribs/disk.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"Name": "Solid Mechanics ",
33
"ShortName":"Solid",
4-
"Model":"Elasticity",
4+
"Models":
5+
{
6+
"equations":"Elasticity"
7+
},
58
"Materials":
69
{
710
"omega":
811
{
9-
"name":"solid",
1012
"E":"210e3", // N/mm^2
1113
"nu":"0.4", //
1214
"rho":"7800e-9" // kg/mm^3
@@ -34,18 +36,21 @@
3436
},
3537
"PostProcess":
3638
{
37-
"Fields":["displacement","Von-Mises","tresca","principal-stresses"],
39+
"Exports":
40+
{
41+
"fields":["displacement","Von-Mises","tresca","principal-stresses"]
42+
},
3843
"Measures":
3944
{
40-
"VolumeVariation":"omega",
41-
"Maximum":
42-
{
43-
"load":
44-
{
45-
"markers":"load",
46-
"fields":["displacement","stress","normal-stress","wall-shear-stress"]
47-
}
48-
}
45+
"VolumeVariation":"omega",
46+
"Maximum":
47+
{
48+
"load":
49+
{
50+
"markers":"load",
51+
"fields":["displacement"]
52+
}
53+
}
4954
}
5055
}
5156

examples/modules/csm/pages/ribs/index.adoc

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
= Bracing with ribs
2-
Bereczki, Norbi
3-
v1.0, 2018/01/13
4-
:toc: left
5-
ifdef::env-github,env-browser[]
6-
:outfilesuffix: .adoc
7-
:imagesdir: https://media.githubusercontent.com/media/feelpp/toolbox/master/csm/ribs/
8-
endif::[]
2+
:page-vtkjs: true
93

104
== Introduction
115

@@ -41,13 +35,48 @@ image:ribs/image3.png[Képernyőfelvétel (823).png,width=274,height=283]image:r
4135

4236
Maximum displacement: 0.6501 mm Maximum stress: 512.4 MPa
4337

44-
image:ribs/image5.png[C:\Users\Bereczki\Documents\Feel++2\Dokumentálás_javított\Bordák_merevvé\d1.png,width=311,height=272]image:ribs/image6.png[C:\Users\Bereczki\Documents\Feel++2\Dokumentálás_javított\Bordák_merevvé\v1.png,width=309,height=272]
38+
|====
39+
a| image:ribs/image5.png[] a| image:ribs/image6.png[]
40+
|====
41+
42+
.3D Model without ribs.
43+
++++
44+
45+
<div class="stretchy-wrapper-16_9">
46+
<div id="vtkVisuSection1" style="margin: auto; width: 100%; height: 100%; padding: 10px;"></div>
47+
</div>
48+
<script type="text/javascript">
49+
feelppVtkJs.createSceneImporter( vtkVisuSection1, {
50+
fileURL: "https://girder.math.unistra.fr/api/v1/file/5ad4a6f5b0e9574027047d6a/download",
51+
objects: { "deformation":[ { scene:"displacement" }, { scene:"von_mises" } ] }
52+
} );
53+
</script>
54+
55+
++++
4556

4657
=== With ribs
4758

4859
Maximum displacement: 0.528 mm Maximum stress: 599.1 MPa
4960

50-
image:ribs/image7.png[C:\Users\Bereczki\Documents\Feel++2\Dokumentálás_javított\Bordák_merevvé\d2.png,width=304,height=272] image:ribs/image8.png[C:\Users\Bereczki\Documents\Feel++2\Dokumentálás_javított\Bordák_merevvé\v2.png,width=302,height=272]
61+
|====
62+
a| image:ribs/image7.png[] a| image:ribs/image8.png[]
63+
|====
64+
65+
.3D Model with ribs.
66+
++++
67+
68+
<div class="stretchy-wrapper-16_9">
69+
<div id="vtkVisuSection2" style="margin: auto; width: 100%; height: 100%; padding: 10px;"></div>
70+
</div>
71+
<script type="text/javascript">
72+
feelppVtkJs.createSceneImporter( vtkVisuSection2, {
73+
fileURL: "https://girder.math.unistra.fr/api/v1/file/5ad4a6f5b0e9574027047d6d/download",
74+
objects: { "deformation":[ { scene:"displacement" }, { scene:"von_mises" } ] }
75+
} );
76+
</script>
77+
78+
++++
79+
5180

5281
=== Summary
5382

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
fe-approximation=P2 #P1,P2
1+
fe-approximation=P1 #P1,P2
2+
directory=toolboxes/solid/sensor/P1
23

34
[solid]
45
filename=$cfgdir/capteur.json
56

7+
mesh.filename=$cfgdir/capteur.msh
8+
gmsh.partition=1
9+
610
material_law=StVenantKirchhoff# StVenantKirchhoff, NeoHookean
711

812
# use density and material coeff cst in appli
913
jacobian-linear-update=false
1014
linearsystem-cst-update=false
1115

16+
snes-monitor=1
1217
# snes and ksp config
1318
#reuse-prec=true#false
1419
#reuse-jac=true#false
@@ -20,21 +25,12 @@ snes-ksp-maxit=1000
2025
snes-ksp-maxit-reuse=100
2126

2227
# precondtioner config
23-
pc-type=lu #lu,gasm,ml
28+
pc-type=gamg #lu,gasm,ml
2429
ksp-converged-reason=1
2530

26-
mshfile=$cfgdir/capteur.msh
27-
#[solid.gmsh]
28-
2931
[ts]
3032
time-step=0.05
3133
time-final=0.63
3234
#restart=true
3335
restart.at-last-save=true
3436
#save.freq=2
35-
36-
37-
[exporter]
38-
directory=applications/models/capteur/$solid_tag
39-
freq=1
40-
#format=ensightgold

examples/modules/csm/pages/sensor/capteur.json

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"Name": "Solid Mechanics ",
33
"ShortName":"Solid",
4-
"Model":"Hyper-Elasticity",
4+
"Models":
5+
{
6+
"equations":"Hyper-Elasticity"
7+
},
58
"Materials":
69
{
710
"omega":
811
{
9-
"name":"solid",
1012
"E":"205e3",
1113
"nu":"0.3",
1214
"rho":"7850e-9"
@@ -16,7 +18,7 @@
1618
{
1719
"displacement":
1820
{
19-
"Dirichlet":
21+
"Dirichlet":
2022
{
2123
"fixed":
2224
{
@@ -29,7 +31,7 @@
2931
{
3032
"expr":"{0,(100*sin(5*t)),0}:t"
3133
},
32-
"load2":
34+
"load2":
3335
{
3436
"expr":"{0,(-100*sin(5*t)),0}:t"
3537
}
@@ -39,18 +41,20 @@
3941
},
4042
"PostProcess":
4143
{
42-
"Fields":["displacement","Von-Mises"],
44+
"Exports":
45+
{
46+
"fields":["displacement","Von-Mises","pid"]
47+
},
4348
"Measures":
4449
{
45-
"Maximum":
46-
{
47-
"Max":
48-
{
49-
"markers":"load",
50-
"fields":["displacement"]
51-
}
52-
53-
}
50+
"Maximum":
51+
{
52+
"Max":
53+
{
54+
"markers":"load",
55+
"fields":["displacement"]
56+
}
57+
}
5458
}
5559
}
5660

Binary file not shown.

examples/modules/csm/pages/sensor/images/media/image10.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/modules/csm/pages/sensor/images/media/image11.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/modules/csm/pages/sensor/images/media/image12.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/modules/csm/pages/sensor/images/media/image13.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)