New Constraint - Pressure

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

New Constraint - Pressure

Post by PrzemoF »

I'm working on Constraint Pressure using CalculiX DLOAD - preview below. The code is almost ready, but I need to fix arrows (direction, shape and location) for that constraint, before I ask for help with testing.
Attachments
FreeCAD_ConstraintPressure_Tank_test.png
FreeCAD_ConstraintPressure_Tank_test.png (505.54 KiB) Viewed 3151 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: New Constraint - Pressure

Post by DeepSOIC »

Beautiful!!
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: New Constraint - Pressure

Post by sgrogan »

crushacan.PNG
crushacan.PNG (214.16 KiB) Viewed 3140 times
crushacan2.FCStd
(350.85 KiB) Downloaded 94 times
"fight the good fight"
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: New Constraint - Pressure

Post by PrzemoF »

Arrows ready :D
FreeCAD_ConstraintPressure_Tank_arrows_section.jpg
FreeCAD_ConstraintPressure_Tank_arrows_section.jpg (353.48 KiB) Viewed 3106 times
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: New Constraint - Pressure

Post by sgrogan »

I was going to ask about changing the color as a visual cue. It's brilliant. I will test this evening my time.
Did you change arrow color in the icon as well?
"fight the good fight"
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: New Constraint - Pressure

Post by sgrogan »

Oh, I see. The arrow color is controlled by the face color property. So I re-phrase. What to you guys think about different default colors for the different constraint types?
crushacan3.PNG
crushacan3.PNG (269.98 KiB) Viewed 3084 times
crushacan3.FCStd
(497.62 KiB) Downloaded 87 times
"fight the good fight"
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: New Constraint - Pressure

Post by PrzemoF »

I'll change the icon colour - thanks for suggesting it! I was going to change constraints colours or add a colour picker to FEM Preferences. I'm OK with red for force, dark blue for pressure, some shade of dark grey for fixed constraint.
Edit: Also a selected constraint should change colour - right now there is no way of telling what is what.

P.S. Actually adding a colour picker to the dialog window used to define constraints should be easy as well.

Edit2: We only have to decide on the default colours - the normal way of changing colours works fine for constraints.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: New Constraint - Pressure

Post by bernd »

PrzemoF wrote:... Edit2: We only have to decide on the default colours - the normal way of changing colours works fine for constraints.
The default colours for each constraint would be best in preference not in each constraint gui.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: New Constraint - Pressure

Post by sgrogan »

I think fix can stay red the arrows have a base already to distinguish it from a force. How about:
red=node constraint
blue=element face constraint
green=element volume constraint

Some sort of selection indicator is another great idea.
"fight the good fight"
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: New Constraint - Pressure

Post by PrzemoF »

sgrogan wrote:I think fix can stay red the arrows have a base already to distinguish it from a force. How about:
red=node constraint
blue=element face constraint
green=element volume constraint

Some sort of selection indicator is another great idea.
Sounds good, but I won't be implementing that in fixed/force constraints now. The code it too complicated for me, so for now ConstraintPressue (faces only) will be use short, blue arrows, but the rest will stay red. The next step will be to implement force input field (currently only pressure value can be specified) and a text field showing information about area of the selected face to allow selecting force or pressure and auto calculate the other value using the area.

The Pressure constraint is ready for testing: https://github.com/PrzemoF/FreeCAD_sf_m ... ressure_v2
Post Reply