FEM Thermomechanik

About the development of the FEM module/workbench.

Moderator: bernd

Sidemountyucatan
Posts: 21
Joined: Wed Apr 17, 2019 2:08 pm

FEM Thermomechanik

Postby Sidemountyucatan » Fri Jun 21, 2019 9:14 am

Hi everybody,

I tried to solve a FEM case but the solver stucks in the dependencies check.
Can anybody give me indication why ?

Best Regards
Jee-Bee
Posts: 1921
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM Thermomechanik

Postby Jee-Bee » Fri Jun 21, 2019 11:23 am

If you go to View>>Panels and select Report View i guess it will give some clues/ info.
Also give us your version info(https://forum.freecadweb.org/viewtopic.php?f=3&t=2264). Without it is much more difficult to help you.
Sidemountyucatan
Posts: 21
Joined: Wed Apr 17, 2019 2:08 pm

Re: FEM Thermomechanik

Postby Sidemountyucatan » Fri Jun 21, 2019 12:25 pm

Thanks Jee-Bee for your answer,

the version is:

0.17
Release: 2018/08/16
Revisionnumber: 13541

Windows 10 64 Bit

Hash:9948ee4f1570df9216862a79705afb367b2c6ffb


I got the following message (red text below):

FemConstraintForce has Face reference shapes.
FEM preferences working dir is not set, the solver working directory is used.
FemToolsCCx.setup_working_dir() --> self.working_dir = C:\Users\Marcus.Denk\Desktop\
FemConstraintForce has Face reference shapes.
SolidMaterial has empty References.
FemConstraintForce has Face reference shapes.
FEM preferences working dir is not set, the solver working directory is used.
FemToolsCCx.setup_working_dir() --> self.working_dir = C:\Users\Marcus.Denk\Desktop\
FemConstraintForce has Face reference shapes.
FemInputWriterCcx --> self.dir_name --> C:\Users\Marcus.Denk\Desktop\
FemInputWriterCcx --> self.main_file_name --> FEMMeshGmsh.inp
FemInputWriterCcx --> self.file_name --> C:\Users\Marcus.Denk\Desktop\FEMMeshGmsh.inp
Constraint fixed: FemConstraintFixed
nodes will be retrieved by searching the appropriate nodes in the FEM mesh
ReferenceShape ... Type: Face, Object name: CompoundFilter, Object label: CompoundFilter, Element name: Face5
Constraint temperature: FemConstraintTemperature
nodes will be retrieved by searching the appropriate nodes in the FEM mesh
ReferenceShape ... Type: Face, Object name: CompoundFilter, Object label: CompoundFilter, Element name: Face5
Constraint force: FemConstraintForce
Unexpected error when writing CalculiX input file: <type 'exceptions.UnicodeEncodeError'>
Traceback (most recent call last):
File "C:\Program Files\FreeCAD 0.17\Mod\Fem\femguiobjects\_ViewProviderFemSolverCalculix.py", line 263, in write_input_file_handler
fea.write_inp_file()
File "C:\Program Files\FreeCAD 0.17\Mod\Fem\femtools\ccxtools.py", line 550, in write_inp_file
self.inp_file_name = inp_writer.write_calculix_input_file()
File "C:\Program Files\FreeCAD 0.17\Mod\Fem\femsolver\calculix\writer.py", line 76, in write_calculix_input_file
self.write_calculix_one_input_file()
File "C:\Program Files\FreeCAD 0.17\Mod\Fem\femsolver\calculix\writer.py", line 165, in write_calculix_one_input_file
self.write_footer(inpfile)
File "C:\Program Files\FreeCAD 0.17\Mod\Fem\femsolver\calculix\writer.py", line 1094, in write_footer
f.write('** file name --> ' + os.path.basename(FreeCAD.ActiveDocument.FileName) + '\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 30: ordinal not in range(128)




Best Regards
User avatar
Kunda1
Posts: 4814
Joined: Thu Jan 05, 2017 9:03 pm

Re: FEM Thermomechanik

Postby Kunda1 » Fri Jun 21, 2019 12:44 pm

Sidemountyucatan wrote:
Fri Jun 21, 2019 12:25 pm
Thanks Jee-Bee for your answer,

the version is: 0.17
Release: 2018/08/16
Revisionnumber: 13541
Windows 10 64 Bit
Hash:9948ee4f1570df9216862a79705afb367b2c6ffb
Please read the guidelines carefully.
Step #4 Please provide your FreeCAD version info
Open the Help --> About FreeCAD menu then click on the "Copy to clipboard" button


Also if you are using FEM best to use the latest Freecad v18.2 stable (or the FreeCAD v0.19_pre)

The issue you posted looks like a unicode issues. Most likely it's solved in a more up to date version. Please report back your results.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM Thermomechanik

Postby bernd » Sat Jun 22, 2019 5:54 pm

for FEM 0.17 is age, really AGES outdated. Best is to use 0.19 as all FEM power user do. Furthermore a very good idea if you have problems, is to post the file. If the mesh is big clear it ( clear, not delete)
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM Thermomechanik

Postby bernd » Sat Jun 22, 2019 5:55 pm

BTW: a FEM file saved with 0.17 should open on 0.19!
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM Thermomechanik

Postby bernd » Sat Jun 22, 2019 5:58 pm

either the path for the input file or the input file name itself have dome special character. Try to get rid of the dpecial character.

BTW: would be good to know if special character still make problems even in 0.19 verdion of FreeCAD.
UR_
Posts: 872
Joined: Tue Jan 03, 2017 8:42 pm

Re: FEM Thermomechanik

Postby UR_ » Sat Jun 22, 2019 6:46 pm

bernd wrote:
Sat Jun 22, 2019 5:58 pm
BTW: would be good to know if special character still make problems even in 0.19 version of FreeCAD.

Freecad is not the tender spot.
AFAIK ccx can't handle non ASCII chars used in file specs. :(
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM Thermomechanik

Postby bernd » Sat Jun 22, 2019 8:25 pm

if this would be the problem we need to take care of. But AFAIK the mesh object name is taken as ccx input file name, and a name can not have not ASCII character only labels can AFAIK. But I am on the mobil mean I can not check in tne code.
UR_
Posts: 872
Joined: Tue Jan 03, 2017 8:42 pm

Re: FEM Thermomechanik

Postby UR_ » Sun Jun 23, 2019 7:26 am

Example workflow to produce buggy behavior:

- open 3D cantilever example from FreeCAD's start page
- rename it to "testü" (note appended german umlaut)
- Set preferences FEM->General->Working directory to "Beside .FCStd file"
- writing inp file works as expected
- running ccx (2.15) gives some error

ccx's output:

Code: Select all

************************************************************

CalculiX Version 2.15, Copyright(C) 1998-2018 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 niedz., 16 gru 2018 14:14:23

  The numbers below are estimated upper bounds

  number of:

   nodes:            0
   elements:            0
   one-dimensional elements:            0
   two-dimensional elements:            0
   integration points per element:            0
   degrees of freedom per node:            3
   layers per element:            1

   distributed facial loads:            0
   distributed volumetric loads:            0
   concentrated loads:           13
   single point constraints:           39
   multiple point constraints:            1
   terms in all multiple point constraints:            1
   tie constraints:            0
   dependent nodes tied by cyclic constraints:            0
   dependent nodes in pre-tension constraints:            0

   sets:            2
   terms in all sets:           26

   materials:            1
   constants per material and temperature:            2
   temperature points per material:            1
   plastic data points per material:            0

   orientations:            0
   amplitudes:            2
   data points in all amplitudes:            2
   print requests:            1
   transformations:            0
   property cards:            0

 *WARNING reading *NSET/ELSET: value          192
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value          193
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value          194
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value          195
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value            5
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value            6
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value            7
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value            8
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value          101
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value          103
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value           76
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value           50
          in set FEMCONSTRAINTFIXED > nk
 *WARNING reading *NSET/ELSET: value           52
          in set FEMCONSTRAINTFIXED > nk
 *ERROR reading *NSET/ELSET: element set EVOLUMES
        has not been defined yet
 *ERROR reading *BOUNDARY: node set FEMCONSTRAINTFIXED
        has not yet been defined.
 *ERROR reading *BOUNDARY. Card image:
        FEMCONSTRAINTFIXED,1

 *ERROR reading *CLOAD: node            1
        is not defined
 *WARNING reading *NODE PRINT: node set FEMCONSTRAINTFIXED does not exist
 *WARNING in calinput. Card image cannot be interpreted:
 *WARNING reading the input file. Card image:
          RF


 STEP            1

 Static analysis was selected

 *ERROR in calinput: at least one fatal
        error message while reading the
        input deck: CalculiX stops.

tested with:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17104 (Git)
Build type: Release
Branch: master
Hash: 3810381d9207a64495ca3a4af552e5129491013c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)