Commit Graph

211 Commits

Author SHA1 Message Date
Uwe
17b9e5a401 [FEM] fix wrong error message about comments
- fixes an annoying warning (that is output as error) about unused COMMENT
2022-06-05 13:42:41 +02:00
Uwe
d285a8e397 [FEM] add missing parser handling of '^' character (#6966)
* [FEM] add missing parser handling of '^' character

- it is common to use equations like "x^2" but one currently get only an error
- this PR fixes this by adding parsing support for the '^' character as power function

This way is it now also possible to calculate a root by e.g. "x^(0.5).
2022-06-05 13:13:49 +02:00
Stefan Brüns
21f20065c0 [FEM] Avoid writing parse cache file to non-writable location
Creating the parsetab.py cache file in the same location as the tokrules
file will fail when FreeCAD is installed system wide.

Caching provides hardly any benefit here, as it only takes milliseconds,
and may even be negated by the additional required filesystem operations.

The debug output (parser.out) does not provide any useful information
for a regular FreeCAD user.

Fixes (part of) #6315.
2022-03-31 10:39:49 -05:00
Uwe
5f3b9d42ff [FEM] fix missing recompute
after the ccx_dat_file object has been changed, the analysis must be recomputed
2022-03-25 21:05:43 +01:00
luz paz
d877ee4d47 Make source code comments use gender neutral pronouns
The changes also include some grammatical fixes as well.
2021-12-02 16:18:04 -05:00
Bernd Hahnebach
ae8e8c70dd FEM: ccx tools, do not rais exceptions if there is no binary, give feedback to the user instead 2021-08-03 07:24:01 +02:00
Bernd Hahnebach
e4b15dd336 FEM: calculix prechecks, beamsections and mesh without geometry link is not allowed 2021-08-01 11:42:29 +02:00
Bernd Hahnebach
fc364a4dc9 FEM: migrate modules, add old z88 solver module 2021-08-01 11:42:25 +02:00
Bernd Hahnebach
5b05a0baed FEM: solver, improve analysis member tests 2021-07-27 23:42:09 +02:00
Bernd Hahnebach
33679f34b4 FEM: solver run, improve output 2021-07-27 21:57:23 +02:00
Bernd Hahnebach
2aeba3674a FEM: tasks and writer, use generic solver input writing method name 2021-07-18 14:47:50 +02:00
Bernd Hahnebach
fcb91f36af FEM: make use of mesh data getter class for calculix solver and ccxtools 2021-07-17 20:46:36 +02:00
UR-0
cc97865141 FEM: constraint centrif, App objects and methods:
- CalculiX centrifugal body loads
- CalculiX label CENTRIF from *DLOAD card
- implement FreeCAD NonGui code
- the object, ccx writer, etc
2021-07-09 22:03:58 +02:00
Bernd Hahnebach
ba11c64d33 FEM: ccx results name improvements 2021-06-24 18:03:35 +02:00
Tobias Vaara
b3fc3341dc FEM: CCX naming of buckling resultfile
Fixes the naming of the resultfile. Instead of displaying 'Time', it displays "BucklingFactor".
2021-06-24 18:03:20 +02:00
Bernd Hahnebach
0e24a75788 FEM: calculix dat result text object, move into analysis 2021-06-16 15:34:24 +02:00
UR-0
a10f71788c FEM: member tools, add missing comments 2021-06-15 20:35:46 +02:00
UR-0
38adcc0a24 [FEM] patch LGTM alerts 2021-05-06 19:51:27 +02:00
Bernd Hahnebach
cd0f3405ee FEM: pep8 2021-03-13 21:47:50 +01:00
UR-0
2226db404a getPropertyOfGeometry() used to get BoundBox 2021-03-13 21:23:23 +01:00
UR-0
31ca5bc02e upgrade getBoundBoxOfAllDocumentShapes to handle more objects 2021-03-13 21:23:23 +01:00
UR-0
b9669db146 satisfy Travis 2021-03-07 11:24:20 +01:00
UR-0
63bc55a221 [FEM] make ccx_dat_file object (from ccx_Result) ReadOnly 2021-03-07 11:24:20 +01:00
UR-0
7499d0b37b fixes not handled exception in "task_mesh_gmsh.py"
error = sys.exc_info()[0].strip()
<class 'AttributeError'>: type object 'RuntimeError' has no attribute 'strip'
Furthermore reporting "value" instead of "type" gives more useful error messages
2021-03-06 21:00:23 +01:00
Bernd Hahnebach
3c1d251014 FEM: code formatting, revert parts of commit 058582edb5b 2021-02-16 16:17:47 +01:00
UR-0
f79cef0e8a [FEM] Clipping plane: Fix handling of shapeless document objects 2021-02-09 20:20:49 +01:00
Bernd Hahnebach
5fb28bdc96 FEM: utils, fix clipping FemMesh without Shape 2021-01-17 23:46:41 +01:00
luz paz
55f471b72c FEM: doxygen 2020-12-04 17:50:00 +01:00
Bernd Hahnebach
6bcc839dba FEM: trailing whitespaces 2020-11-26 09:07:32 +01:00
Bernd Hahnebach
cf57e5feff FEM: ccxtools, dir improvements 2020-11-18 23:32:15 +01:00
Bernd Hahnebach
6fda0a2faa FEM: python, get rid of bare excepts 2020-10-27 08:24:27 +01:00
Bernd Hahnebach
fbd222ca2a FEM: migrate tools, fix github links 2020-07-20 16:22:47 +02:00
Bernd Hahnebach
60e6bc062a FEM: constants, fix non ascii character 2020-07-13 22:56:23 +02:00
Bernd Hahnebach
856c1206bd FEM: constants, more exact values 2020-07-13 08:08:57 +02:00
Bernd Hahnebach
3a97d68e70 FEM: elmer equation flux, better name without word solver 2020-06-29 22:28:26 +02:00
Bernd Hahnebach
84aba55ea8 FEM: constant vacuum permittivity, add object to overwrite constant 2020-06-29 17:46:43 +02:00
Bernd Hahnebach
afdb767302 FEM: constants, typo 2020-06-26 09:11:41 +02:00
Bernd Hahnebach
1df612b57c FEM: code foramatting, line length 2020-06-25 11:58:45 +02:00
UR-0
f5b235c47b FEM: ccx constraint section print, implement in ccx writer 2020-06-24 07:52:16 +02:00
Bernd Hahnebach
9a65d4db38 FEM: constraint transform, fix round by improving coordinate calculation 2020-06-09 06:45:01 +02:00
Bernd Hahnebach
c915347c90 FEM: constraint transfrom, coordinate transformation 2020-06-09 06:21:54 +02:00
Bernd Hahnebach
feb5f78b74 FEM: migrate gui, move to gui utils 2020-06-03 23:49:09 +02:00
Bernd Hahnebach
920d9c3263 FEM: migrate modules, small fix 2020-05-22 11:08:44 +02:00
Bernd Hahnebach
01dc95ad42 FEM: python base VP, rename class and module 2020-05-22 01:08:12 +02:00
Bernd Hahnebach
316891caea FEM: python base object, rename class and module 2020-05-22 01:08:10 +02:00
Bernd Hahnebach
3e34731831 FEM: material common, rename class and module 2020-05-22 01:08:08 +02:00
Bernd Hahnebach
f09e7b62d0 FEM: solver ccx tools, rename class and module 2020-05-22 01:08:06 +02:00
Bernd Hahnebach
8c3cc8fc6c FEM: result mechanical, rename class and module 2020-05-22 01:08:04 +02:00
Bernd Hahnebach
11de7a7ac2 FEM: mesh result, rename class and module 2020-05-22 01:08:02 +02:00
Bernd Hahnebach
cb0a26c5b6 FEM: mesh region, rename class and module 2020-05-22 01:08:00 +02:00