Commit Graph

4665 Commits

Author SHA1 Message Date
Chris Hennes
f310d2bd67 FEM: Remove unused members 2024-06-24 20:44:53 -05:00
Chris Hennes
d01ce32a1f Update for LibPack3 (#10337)
* cMake: Add base support for LibPack3

Minor changes to FreeCAD source code to support compiling with Qt 6.5 on MSVC,
and changes to cMake setup to support the new Libpack.

* NETGENPlugin: Fix compilation with MSVC and OCCT 7.8

* Material: Switch to Wrapped_ParseTupleAndKeywords for /fpermissive- on MSVC

* Base: Prevent accidental definition of MIN and MAX by MSVC

* cMake: Prevent accidentally finding an old LibPack

* Material: Wrap another ParseTuple call

* OCCT: Modify includes for 7.8.x

* Part: Change TNP code to use Wrapped_ParseTupleAndArgs

* Spreadsheet: Workaround for MSVC macro pollution

* Mesh: Workaround for MSVC macro pollution

* Base: Remove extra MSVC flag (moved to CMake)

* Tests: Fix compiling with /permissive-

* FEM: Fix Qt warnings about duplicate element names

* cMake: Ensure major version numbers are set

* Address review comments.

* cMake: Further tweaks for LibPack3

* cMake: Modify specification of compiler flags for MSVC

* Main: Remove QtQuick testing code

* cmake: Find Boost before SMESH (which uses it)

* Fixes for LibPack2

* cMake: Another try at importinhg VTK cleanly
2024-06-24 18:25:05 +02:00
Chris Hennes
6f277af10a FEM: Remove set but unused variable 2024-06-24 18:17:11 +02:00
marioalexis
464a50d60e Fem: Clean up constraint view providers 2024-06-24 11:15:14 -05:00
Chris Hennes
1ba5f02129 Merge pull request #14766 from wwmayer/import_options
Import: Avoid modal dialog inside ImportGui.open()
2024-06-24 11:10:31 -05:00
Chris Hennes
a44f5e36fa Merge pull request #14771 from marioalexis84/fem-python_base_class
Fem: Create own base class for Python objects - fixes #14637
2024-06-22 13:13:14 -05:00
marioalexis
932c73f0de Fem: Remove selection observer - fixes #14001 2024-06-21 19:28:12 -05:00
marioalexis
32029a1488 Fem: Create own base class for Python Material objects 2024-06-21 19:26:18 -05:00
marioalexis
a5b0cab900 Fem: Create own base class for Python Mesh objects 2024-06-21 19:26:18 -05:00
marioalexis
eb73c8e20f Fem: Create own base class for Python Element objects 2024-06-21 19:26:18 -05:00
marioalexis
60e782223b Fem: Avoid unnecessary method overriding 2024-06-21 19:26:18 -05:00
wmayer
985579bced Import: Move options handling to ImportGui.importOptions
Currently a modal dialog is used directly in ImportGui.open()/ImportGui.insert() that makes it impossible to use the functions in a
script because they will be blocked
2024-06-21 12:00:38 -05:00
Chris Hennes
e3509a37d1 Merge pull request #14773 from wwmayer/fix_fem
FEM: Fix linking errors & clean-up code
2024-06-18 18:41:01 -05:00
wmayer
57489af043 Fem: Clean-up code 2024-06-18 19:58:16 +02:00
wmayer
b7e0313591 Fem: Refactor DefineNodesCallback and DefineElementsCallback
Refactor the two methods to reduce code duplication.
2024-06-18 18:48:14 +02:00
wmayer
47a9ec8481 FEM: Fix linking errors
The static members of FemSetElementNodesObject are not defined in Fem but FemGui which the MSVC compiler doesn't like.
Furthermore it's a code smell to make them public and static and they are not even used by the class itself.
2024-06-18 18:14:10 +02:00
wmayer
6c0f42bb15 Fem: Fix copyright notices
Do not clutter copyright notices with changes made to a file. That's the task of the VCS
2024-06-18 18:01:22 +02:00
Chris Hennes
a36a60d29d Fem/Sketcher: Fix missing PreCompiled.h files 2024-06-18 08:05:32 -05:00
wmayer
27c61ef137 FEM: Fix several issues
* Move global (non-static) variables into anonymous namespace to avoid possible linking issues that may cause UB
* Fix compiler warnings
* Do not reinvent the wheel and use boost::to_upper_copy instead of own implementation
2024-06-17 19:57:04 +02:00
marioalexis
767bbb8436 Fem: Fix height of reference list widget in spring constraint task panel 2024-06-17 11:18:00 -05:00
Chris Hennes
c726198106 Merge branch 'main' into erase-version-4 2024-06-17 11:10:12 -05:00
marioalexis
3d7d5ab785 Fem: Remove dependency of calculix solver classes on user parameters - fixes #13383 2024-06-17 10:58:57 -05:00
marioalexis
f8027a16d0 Fem: Force z=0 for plane stress, plane strain and axisymmetric elements in writeABAQUS - fixes #12875 2024-06-17 10:57:31 -05:00
marioalexis
9774cd5750 Fem: Write reaction force from rigid body nodes - fixes #14558 2024-06-17 10:38:39 -05:00
wmayer
9b198c7704 MSVC: Fix warnings and build failure 2024-06-12 10:36:58 -05:00
wmayer
dd816a635c Fix several compiler warnings
* variable 'xAngle' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
* variable 'yAngle' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
* variable 'zAngle' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
* unused variable 'base' [-Werror,-Wunused-variable]
* unused variable 'extrude' [-Werror,-Wunused-variable]
2024-06-11 11:42:12 +02:00
Chris Hennes
472493f876 Merge pull request #14353 from marioalexis84/fem-constraint_transform
Fem: Cleanup ViewProviderFemConstraint and update constraint transform
2024-06-10 11:18:57 -05:00
Chris Hennes
5b3b293811 Merge pull request #14417 from marioalexis84/fem-constraint_body_heat_source
Fem: Add body heat source to CalculiX writer - fixes #11650
2024-06-10 10:38:26 -05:00
marioalexis
108a66f960 Fem: Add license to constraints symbol files 2024-06-05 13:12:25 -03:00
marioalexis
f17ad4f143 Fem: Update constraint transform 2024-06-05 13:12:25 -03:00
marioalexis
536a2b0aad Fem: Move functions to Tools class 2024-06-05 13:12:25 -03:00
marioalexis
b93274ceef Fem: Cleanup ViewProviderFemConstraint class 2024-06-05 13:12:25 -03:00
marioalexis
e3648061fd Fem: Set license for Python generated examples 2024-06-04 11:38:29 -03:00
marioalexis
609da5cf04 Fem: Set compatible license in test files - fixes #8894 2024-06-04 04:30:03 -03:00
Chris Hennes
696196d8f0 Update translations 2024-06-03 11:04:42 -05:00
marioalexis
13f7b03d83 Fem: Improve constraint BodyHeatSource 2024-06-03 03:15:14 -03:00
marioalexis
8ec0916efb Fem: Add body heat source to CalculiX writer - fixes #11650 2024-06-02 18:38:15 -03:00
David Carter
8b5a3b1124 Material: Appearance Updates 2
Improves the use of the ShapeAppearance property for the Part workbench.

    removes DiffuseColor property
        adds Python compatibility using custom attributes
        transitions DiffuseColor to ShapeAppearance on open
    Improved UI elements for setting object appearance, and appearance per face
    Lays the foundation for future texture support
2024-06-01 19:57:16 -05:00
wmayer
4185605d5e clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors 2024-05-29 13:37:07 +02:00
dzid26
61e5c27065 Enforce OpenMP version 4.0 2024-05-27 11:44:05 -05:00
FEA-eng
10715056bb Update Command.cpp 2024-05-27 11:03:19 -05:00
marioalexis
dd95fec1fa Fem: Update ReferenceNode property from task dialog - fixes #14172 2024-05-27 11:02:59 -05:00
marioalexis
459a5563f2 Fem: Increase size of reference node symbol in rigid body constraint - fixes #14133 2024-05-27 10:34:12 -05:00
marioalexis
0041ec220f Fem: Don't hide input filter with DataAtPoint and DataAlongLine - fixes #14135 2024-05-27 10:31:28 -05:00
Chris Hennes
d4f780782d Update translations
Arch->BIM is a WIP
2024-05-25 19:11:51 -05:00
pre-commit-ci[bot]
2b619949eb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-22 10:21:10 +02:00
mos
bf1f16ac53 [fem] clean
clean unused code
2024-05-22 10:21:10 +02:00
FEA-eng
6786fed067 Update checksanalysis.py 2024-05-20 11:28:50 -05:00
FEA-eng
0c6ae9672d Update TaskFemConstraintRigidBody.ui 2024-05-20 11:25:54 -05:00
marioalexis
7c34978f0b Fem: Highlight active Analysis according to user defined color 2024-05-20 11:01:18 -05:00