Request for help meshing and and analysing a part {Solved}

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
Laurie Hartley
Posts: 526
Joined: Mon Feb 27, 2017 5:33 am
Location: Australia

Request for help meshing and and analysing a part {Solved}

Post by Laurie Hartley »

I have run into 4 "jac" errors meshing this part and analysing it. (I don't know what they are to be quite frank)
I am a FEM novice :) and no doubt I am making an elementary mistake.
Any help pointing out where I am going wrong and pointers in the right direction will be greatly appreciated.
Attachments
65 SHS x 4 x1358 Chord 1500 Grid 18mm Holes(Checked).FCStd
(261.91 KiB) Downloaded 784 times
Last edited by Laurie Hartley on Tue Feb 01, 2022 2:54 am, edited 1 time in total.
User avatar
NewJoker
Veteran
Posts: 3069
Joined: Sun Oct 11, 2020 7:49 pm

Re: Request for help meshing and and analysing a part

Post by NewJoker »

It’s just hard to obtain a sufficient quality solid mesh for this thin-walled part. The error that you get means that your mesh has nonpositive jacobians. Try with finer mesh or another mesher (Netgen). If this doesn’t work, consider simplifying this part and using shell elements.

Update: It seems that Gmsh yields correct mesh and the analysis runs to completion when max element size is set to 3 or 4.

Image
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Request for help meshing and and analysing a part

Post by bernd »

Have you tried to set second order linear? This helps a lot and you do not need to make a very fine mesh.

https://wiki.freecadweb.org/FEM_MeshGms ... _Jacobians


if you use the run button the non positives are green.if there are only a few a local finer mesh or improving the geometry could be an option as well.

bernd
Laurie Hartley
Posts: 526
Joined: Mon Feb 27, 2017 5:33 am
Location: Australia

Re: Request for help meshing and and analysing a part

Post by Laurie Hartley »

NewJoker wrote: Tue Aug 10, 2021 9:03 am
Update: It seems that Gmsh yields correct mesh and the analysis runs to completion when max element size is set to 3 or 4.
Thanks for your response - I will do that tomorrow as well as explore Bernd’s advice below. I will post the outcomes
Laurie Hartley
Posts: 526
Joined: Mon Feb 27, 2017 5:33 am
Location: Australia

Re: Request for help meshing and and analysing a part

Post by Laurie Hartley »

bernd wrote: Tue Aug 10, 2021 9:53 am Have you tried to set second order linear? This helps a lot and you do not need to make a very fine mesh.

https://wiki.freecadweb.org/FEM_MeshGms ... _Jacobians


if you use the run button the non positives are green.if there are only a few a local finer mesh or improving the geometry could be an option as well.

bernd
Thanks Bernd - I will try this as well as new jokers suggestion above and post the outcomes tomorrow.

I tried both methods and was able to get a clean mesh but encountered another problem probably best explained by uploading some screen shots - see below. (No modes found in Frd file)
For New Jokers suggestion I set gmsh "from shape" the maximum node size to 3mm and min to automatic.
For you suggestion bernd I set gmsh "2D" and the shell geometry thickness to 4mm. (not sure if I have interpreted your instructions correctly)
I ran an analysis on another part successfuly so I don't think I have broken FreeCAD.

Code: Select all

OS: Debian GNU/Linux 10 (buster) (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Australia (en_AU)
Operating System:-

Code: Select all

[code]
System:    Host: <filter> Kernel: 5.8.0-3-amd64 x86_64 bits: 64 compiler: N/A 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.8.0-3-amd64 
           root=UUID=<filter> ro splash quiet 
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel wm: xfwm4 dm: LightDM 1.26.0 
           Distro: MX-19.4_ahs_x64 patito feo March 31  2021 base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Laptop System: LENOVO product: 20NFA00PAU v: ThinkPad E595 serial: <filter> 
           Chassis: type: 10 serial: <filter> 
           Mobo: LENOVO model: 20NFA00PAU serial: <filter> UEFI: LENOVO v: R11ET40W (1.20 ) 
           date: 11/17/2020 
Battery:   ID-1: BAT0 charge: 41.8 Wh condition: 43.9/45.7 Wh (96%) volts: 12.3/11.1 
           model: Celxpert 5B10W138 type: Li-poly serial: <filter> status: Unknown cycles: 2 
CPU:       Topology: Quad Core model: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx bits: 64 
           type: MT MCP arch: Zen+ family: 17 (23) model-id: 18 (24) stepping: 1 
           microcode: 8108102 L2 cache: 2048 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 36732 
           Speed: 1851 MHz min/max: 1400/2300 MHz boost: enabled Core speeds (MHz): 1: 1144 
           2: 1304 3: 1189 4: 1297 5: 1237 6: 1168 7: 1530 8: 1605 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Picasso vendor: Lenovo ThinkPad E595 driver: amdgpu v: kernel 
           bus ID: 05:00.0 chip ID: 1002:15d8 
           Display: x11 server: X.Org 1.20.10 driver: amdgpu 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: 
           renderer: AMD Radeon Vega 10 Graphics (RAVEN DRM 3.38.0 5.8.0-3-amd64 LLVM 11.0.1) 
           v: 4.6 Mesa 20.3.4 direct render: Yes 
Audio:     Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Lenovo ThinkPad E595 
           driver: snd_hda_intel v: kernel bus ID: 05:00.1 chip ID: 1002:15de 
           Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
           vendor: Lenovo ThinkPad E595 driver: N/A bus ID: 05:00.5 chip ID: 1022:15e2 
           Device-3: AMD Family 17h HD Audio vendor: Lenovo ThinkPad E595 driver: snd_hda_intel 
           v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.8.0-3-amd64 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Lenovo ThinkPad E595 driver: r8169 v: kernel port: 3000 bus ID: 02:00.0 
           chip ID: 10ec:8168 
           IF: eth0 state: down mac: <filter> 
           Device-2: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter 
           vendor: Lenovo ThinkPad E595 driver: rtw_8822be v: N/A port: 2000 bus ID: 04:00.0 
           chip ID: 10ec:b822 
           IF: wlan0 state: up mac: <filter> 
Drives:    Local Storage: total: 1000.80 GiB used: 209.38 GiB (20.9%) 
           ID-1: /dev/mmcblk0 model: SD64G size: 58.09 GiB block size: physical: 512 B 
           logical: 512 B serial: <filter> scheme: MBR 
           ID-2: /dev/nvme0n1 vendor: Samsung model: MZVLB512HBJQ-000L7 size: 476.94 GiB 
           block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: 5M2QEXF7 scheme: GPT 
           ID-3: /dev/sda type: USB vendor: Seagate model: ST9500325AS size: 465.76 GiB 
           block size: physical: 512 B logical: 512 B rotation: 5400 rpm serial: <filter> 
           rev: 0130 scheme: MBR 
Partition: ID-1: / raw size: 474.66 GiB size: 466.21 GiB (98.22%) used: 209.38 GiB (44.9%) 
           fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 2.00 GiB used: 1024 KiB (0.0%) fs: swap 
           swappiness: 15 (default 60) cache pressure: 100 (default) dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 59.2 C mobo: 0.0 C gpu: amdgpu temp: 59 C 
           Fan Speeds (RPM): cpu: 0 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/megasync.list 
           1: deb https://mega.nz/linux/MEGAsync/Debian_10.0/ ./
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirror.datamossa.io/mxlinux/mx/repo/ buster main non-free
           2: deb http://mirror.datamossa.io/mxlinux/mx/repo/ buster ahs
           Active apt repos in: /etc/apt/sources.list.d/softmaker.list 
           1: deb http://shop.softmaker.com/repo/apt wheezy non-free
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 271 Uptime: 6h 16m Memory: 13.61 GiB used: 2.55 GiB (18.7%) Init: SysVinit 
           v: 2.93 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: quick-system-in 
           running in: quick-system-in inxi: 3.0.36 
[/code]
Attachments
No modes found in Frd file_3mm_max_from_shape.png
No modes found in Frd file_3mm_max_from_shape.png (72.61 KiB) Viewed 41922 times
No modes found in Frd file_2D_shell_4mm_output_true.png
No modes found in Frd file_2D_shell_4mm_output_true.png (128.54 KiB) Viewed 41922 times
No modes found in Frd file_2D_shell_4mm-output_false.png
No modes found in Frd file_2D_shell_4mm-output_false.png (75.76 KiB) Viewed 41922 times
thschrader
Veteran
Posts: 3155
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Request for help meshing and and analysing a part

Post by thschrader »

Laurie Hartley wrote: Tue Aug 10, 2021 11:21 am For you suggestion bernd I set gmsh "2D" and the shell geometry thickness to 4mm.
Here is a sim with 2D-shell elements. I eliminated the fillets in the MSH-profile
with the defeaturing-wb. With fillets I get a weird mesh.
For 2D-meshing you must produce a 2D-surface from your solid.
hartley_strut.FCStd
(188 KiB) Downloaded 741 times
strut_2D_shells.JPG
strut_2D_shells.JPG (48.41 KiB) Viewed 41912 times
thschrader
Veteran
Posts: 3155
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Request for help meshing and and analysing a part

Post by thschrader »

How to produce the 2D-body from the solids?
Steps:

Defeaturing-wb
1+2+3+4: select inner fillets of strut
5: press button, faces are added to list
6: press button, fillets are removed

Arch-wb:
Select all inner faces from the MSH-solid, tube-solids
Press facebinder-tool
defeatured_strut.JPG
defeatured_strut.JPG (89.55 KiB) Viewed 41896 times
cad1234
Posts: 331
Joined: Fri Dec 28, 2018 11:11 am

Re: Request for help meshing and and analysing a part

Post by cad1234 »

Hi thomas,
which FC Version did you use for your simulaton?
thschrader
Veteran
Posts: 3155
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Request for help meshing and and analysing a part

Post by thschrader »

cad1234 wrote: Wed Aug 11, 2021 10:32 am Hi thomas,
which FC Version did you use for your simulaton?
LP-built
OS: Windows 10 Version 1909
Word size of FreeCAD: 64-bit
Version: 0.20.25065 (Git)
Build type: Release
Branch: master
Hash: 4de2ad46b2b9c78ac2721a0dbea7c19306261095
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)
User avatar
NewJoker
Veteran
Posts: 3069
Joined: Sun Oct 11, 2020 7:49 pm

Re: Request for help meshing and and analysing a part

Post by NewJoker »

thschrader wrote: Wed Aug 11, 2021 10:16 am How to produce the 2D-body from the solids?
Steps:



Arch-wb:
Select all inner faces from the MSH-solid, tube-solids
Press facebinder-tool
It’s a really nice way for solid to shell FEA model conversion in general. However, one has to keep in mind that offset is needed for it to be actual midsurface shell modeling. Is it possible to do it in FreeCAD ? Facebinder’s offset option seems to work differently.

Btw. Facebinder in Draft workbench is the same tool, right ?
Post Reply