[fixed]: Thermomech analysis: split inp writing = true stops ccx

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
thschrader
Veteran
Posts: 3122
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

[fixed]: Thermomech analysis: split inp writing = true stops ccx

Post by thschrader »

Test-file:
bimetalFEM.FCStd
(13.49 KiB) Downloaded 22 times

In solver data-Tab set "Split Input Writer=false" ==> ccx runs
With "true" option ccx stopps with this message:

Code: Select all

CalculiX Version 2.17, Copyright(C) 1998-2020 Guido Dhondt 
CalculiX comes with ABSOLUTELY NO WARRANTY. This is free 
software, and you are welcome to redistribute it under 
certain conditions, see gpl.htm 
************************************************************ 
You are using an executable made on Thu Jul 23 21:43:50 CEST 2020 
*ERROR in readinput: cannot open file FEMMeshGmsh_constraintstemperaturenodesets.inp
0.3: CalculiX execute error: 
0.3: Loading result sets...
Done with:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * BIM
  * CfdOF 1.17.6
  * Curves 0.3.0
  * Defeaturing_WB
  * dodo
  * Fasteners
  * FEM_FrontISTR 0.1.0
  * Manipulator 1.4.3
  * Plot
  * Reinforcement
  * WorkFeature
Last edited by thschrader on Sun Aug 14, 2022 9:52 am, edited 1 time in total.
User avatar
NewJoker
Veteran
Posts: 2977
Joined: Sun Oct 11, 2020 7:49 pm

Re: Thermomech analysis: split inp writing = true stopps ccx

Post by NewJoker »

I can confirm this in 0.20 and 0.21, although I get a different error message:

Code: Select all

FEM: No frd result file found at ...
Version details:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: Polish/Poland (pl_PL)

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30058 (Git)
Build type: Release
Branch: master
Hash: cb96332a64db8ae855ca700212eebb0f5151230a
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: Polish/Poland (pl_PL)
fandaL
Posts: 440
Joined: Thu Jul 24, 2014 8:29 am

Re: Thermomech analysis: split inp writing = true stopps ccx

Post by fandaL »

The input is split to few files and Calculix searches for:
"FEMMeshGmsh_constraintstemperaturenodesets.inp"
but this file written by FC contains spaces in the name:
"FEMMeshGmsh_constraints temperature node sets.inp"
When I deleted spaces manually, ccx runs well.

Tested on

Code: Select all

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) Snap 161
Build type: Release
Branch: tag: 0.20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.2
Locale: English/United States (en_US)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Thermomech analysis: split inp writing = true stopps ccx

Post by Kunda1 »

That looks like a simple fix. But I can't find "FEMMeshGmsh_constraints" in the FC source code. Any idea why?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
johnwang
Veteran
Posts: 1339
Joined: Sun Jan 27, 2019 12:41 am

Re: Thermomech analysis: split inp writing = true stopps ccx

Post by johnwang »

Kunda1 wrote: Sat Aug 13, 2022 1:14 am That looks like a simple fix. But I can't find "FEMMeshGmsh_constraints" in the FC source code. Any idea why?
It's in Mod/Fem/femsolver/calculix/write_constraint_temperature.py
Ref: https://github.com/FreeCAD/FreeCAD/blob ... ure.py#L33

Change line 33 & 34 from :

Code: Select all

def get_sets_name():
    return "constraints temperature node sets"
to:

Code: Select all

def get_sets_name():
    return "constraints_temperature_node_sets"
It will generates FEMMeshGmsh_constraints_temperature_node_sets.inp
the same way as write_constraint_fixed.py and other modules do.


s.png
s.png (14.83 KiB) Viewed 751 times
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Thermomech analysis: split inp writing = true stopps ccx

Post by Kunda1 »

Thanks! PR in issue #7361
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Thermomech analysis: split inp writing = true stopps ccx

Post by uwestoehr »

Kunda1 wrote: Sat Aug 13, 2022 1:57 pm Thanks! PR in issue #7361
The fix was merged and backported. To benefit from it, take the latest patch collection: https://forum.freecadweb.org/viewtopic.php?f=18&t=71058
thschrader
Veteran
Posts: 3122
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Thermomech analysis: split inp writing = true stops ccx

Post by thschrader »

Used your patch, works now. Thanks.
Post Reply