Commit Graph

216 Commits

Author SHA1 Message Date
Uwe
529c48cca4 [FEM] remove unneeded checks for Python 3
since we only support Python >=3, these checks can go
2022-07-31 15:36:54 +02:00
Uwe
6a3a308fe7 [FEM] utils: remove unused import 2022-07-31 02:08:16 +02:00
Uwe
a035d650b6 [FEM] remove checks for Python 2 2022-07-27 14:09:23 +02:00
Uwe
d48fe836ca [FEM] femutils.py: style changes
- as requested
2022-07-14 01:21:54 +02:00
Uwe
c8064ed059 [FEM] fix solver console bugs
- for Elmer and Z88 on Windows several windows pop up (console windows). This is maybe annoying and the user is wondering what is going on, but the main problem is that when you close them, you break the solving process.
Therefore, on Windows only, hide the empty popup windows.
2022-07-13 02:51:31 +02:00
Uwe
332cb9ec2f [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
34300c600f [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
65187652dc [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
8041f0c032 [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
0042f58e4c 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
9813e10d8c 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
abcd05b591 FEM: calculix prechecks, beamsections and mesh without geometry link is not allowed 2021-08-01 11:42:29 +02:00
Bernd Hahnebach
d0e4467761 FEM: migrate modules, add old z88 solver module 2021-08-01 11:42:25 +02:00
Bernd Hahnebach
c0c6212f0c FEM: solver, improve analysis member tests 2021-07-27 23:42:09 +02:00
Bernd Hahnebach
c756881ffa FEM: solver run, improve output 2021-07-27 21:57:23 +02:00
Bernd Hahnebach
241a6a4eac FEM: tasks and writer, use generic solver input writing method name 2021-07-18 14:47:50 +02:00
Bernd Hahnebach
d0dbdf8bf3 FEM: make use of mesh data getter class for calculix solver and ccxtools 2021-07-17 20:46:36 +02:00
UR-0
974f41e0cc 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
79b41f7393 FEM: ccx results name improvements 2021-06-24 18:03:35 +02:00
Tobias Vaara
4ef2769402 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
5f8b7d2f85 FEM: calculix dat result text object, move into analysis 2021-06-16 15:34:24 +02:00
UR-0
a7e3f7a77b FEM: member tools, add missing comments 2021-06-15 20:35:46 +02:00
UR-0
9a5eefaec8 [FEM] patch LGTM alerts 2021-05-06 19:51:27 +02:00
Bernd Hahnebach
69aacc2fc5 FEM: pep8 2021-03-13 21:47:50 +01:00
UR-0
f11945d1c7 getPropertyOfGeometry() used to get BoundBox 2021-03-13 21:23:23 +01:00
UR-0
abf4fee6a4 upgrade getBoundBoxOfAllDocumentShapes to handle more objects 2021-03-13 21:23:23 +01:00
UR-0
a48c7e27a9 satisfy Travis 2021-03-07 11:24:20 +01:00
UR-0
eceea653ae [FEM] make ccx_dat_file object (from ccx_Result) ReadOnly 2021-03-07 11:24:20 +01:00
UR-0
0274b039a2 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
a62b5b314b FEM: code formatting, revert parts of commit f4a65dcbb6 2021-02-16 16:17:47 +01:00
UR-0
9f871a444b [FEM] Clipping plane: Fix handling of shapeless document objects 2021-02-09 20:20:49 +01:00
Bernd Hahnebach
e43ee28e38 FEM: utils, fix clipping FemMesh without Shape 2021-01-17 23:46:41 +01:00
luz paz
f4a65dcbb6 FEM: doxygen 2020-12-04 17:50:00 +01:00
Bernd Hahnebach
b23578501f FEM: trailing whitespaces 2020-11-26 09:07:32 +01:00
Bernd Hahnebach
6e60870ebc FEM: ccxtools, dir improvements 2020-11-18 23:32:15 +01:00
Bernd Hahnebach
d0eb71517c FEM: python, get rid of bare excepts 2020-10-27 08:24:27 +01:00
Bernd Hahnebach
14d08db7fc FEM: migrate tools, fix github links 2020-07-20 16:22:47 +02:00
Bernd Hahnebach
8cec4c0444 FEM: constants, fix non ascii character 2020-07-13 22:56:23 +02:00
Bernd Hahnebach
8d8a8dd87d FEM: constants, more exact values 2020-07-13 08:08:57 +02:00
Bernd Hahnebach
9bfd947886 FEM: elmer equation flux, better name without word solver 2020-06-29 22:28:26 +02:00
Bernd Hahnebach
43ad6aa729 FEM: constant vacuum permittivity, add object to overwrite constant 2020-06-29 17:46:43 +02:00
Bernd Hahnebach
97ea8f456c FEM: constants, typo 2020-06-26 09:11:41 +02:00
Bernd Hahnebach
59bdba9c49 FEM: code foramatting, line length 2020-06-25 11:58:45 +02:00
UR-0
eb9d5bf8f0 FEM: ccx constraint section print, implement in ccx writer 2020-06-24 07:52:16 +02:00
Bernd Hahnebach
86a6757061 FEM: constraint transform, fix round by improving coordinate calculation 2020-06-09 06:45:01 +02:00
Bernd Hahnebach
7c7275cfb0 FEM: constraint transfrom, coordinate transformation 2020-06-09 06:21:54 +02:00
Bernd Hahnebach
1a9247cc4b FEM: migrate gui, move to gui utils 2020-06-03 23:49:09 +02:00
Bernd Hahnebach
cf607d0112 FEM: migrate modules, small fix 2020-05-22 11:08:44 +02:00
Bernd Hahnebach
067659c23d FEM: python base VP, rename class and module 2020-05-22 01:08:12 +02:00
Bernd Hahnebach
d911361e0d FEM: python base object, rename class and module 2020-05-22 01:08:10 +02:00