Number of digits/decimals

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
ReneSci
Posts: 23
Joined: Thu Aug 18, 2022 4:30 pm

Number of digits/decimals

Post by ReneSci »

It seems like the number of decimals has been limited to 2 - any reason for this ?
2022-09-12 14_31_36-FreeCAD 0.20.1.png
2022-09-12 14_31_36-FreeCAD 0.20.1.png (13.9 KiB) Viewed 881 times
becomes:
2022-09-12 14_34_52-FreeCAD 0.20.1.png
2022-09-12 14_34_52-FreeCAD 0.20.1.png (13.75 KiB) Viewed 881 times

Of course one can edit the controlDict - file:

Code: Select all

controlDict
------------------------------

application     interFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

deltaT          0.001;

endTime         1.0;

writeControl    adjustableRunTime;

writeInterval   0.01;

purgeWrite      0;

adjustTimeStep  no;

maxCo           5;

maxAlphaCo      5;

writeFormat     ascii;

writePrecision  8;

runTimeModifiable true;


---------------

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: Danish/Denmark (da_DK)
Installed mods: 
  * A2plus 0.4.58
  * ArchTextures
  * Assembly4 0.12.3
  * CfdOF 1.17.9
  * Defeaturing
  * Dracula 0.0.2
  * ExtremeProDark 1.0.4
  * IconThemes
  * lattice2 1.0.0
  * Manipulator 1.4.9
  * MeshRemodel 1.8919.0
  * parts_library
  * Plot 2022.4.17
  * sheetmetal 0.2.56
  * workfeature
thschrader
Veteran
Posts: 3157
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Number of digits/decimals

Post by thschrader »

Left-click on "f(x)" symbol opens editor.
editor.JPG
editor.JPG (25.79 KiB) Viewed 873 times
User avatar
adrianinsaval
Veteran
Posts: 5551
Joined: Thu Apr 05, 2018 5:15 pm

Re: Number of digits/decimals

Post by adrianinsaval »

In your FreeCAD preferences you can choose the number of decimals that FreeCAD normally uses, if you only want more decimals for specific cases like this using the above workaround is probably better.
ReneSci
Posts: 23
Joined: Thu Aug 18, 2022 4:30 pm

Re: Number of digits/decimals

Post by ReneSci »

Arghh... Of course. Thanks :-)
Post Reply