New Constraint - Pressure

About the development of the FEM module/workbench.

Moderator: bernd

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

New Constraint - Pressure

Postby PrzemoF » Thu May 14, 2015 10:12 pm

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 1585 times
User avatar
DeepSOIC
Posts: 7291
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: New Constraint - Pressure

Postby DeepSOIC » Thu May 14, 2015 10:15 pm

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

Re: New Constraint - Pressure

Postby sgrogan » Thu May 14, 2015 11:15 pm

crushacan.PNG
crushacan.PNG (214.16 KiB) Viewed 1574 times
crushacan2.FCStd
(350.85 KiB) Downloaded 46 times
User avatar
PrzemoF
Posts: 2674
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: New Constraint - Pressure

Postby PrzemoF » Fri May 15, 2015 5:40 pm

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

Re: New Constraint - Pressure

Postby sgrogan » Fri May 15, 2015 5:57 pm

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?
User avatar
sgrogan
Posts: 5584
Joined: Wed Oct 22, 2014 5:02 pm

Re: New Constraint - Pressure

Postby sgrogan » Fri May 15, 2015 8:35 pm

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 1518 times
crushacan3.FCStd
(497.62 KiB) Downloaded 42 times
User avatar
PrzemoF
Posts: 2674
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: New Constraint - Pressure

Postby PrzemoF » Sat May 16, 2015 8:02 am

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
Posts: 8999
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: New Constraint - Pressure

Postby bernd » Sat May 16, 2015 10:42 am

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
Posts: 5584
Joined: Wed Oct 22, 2014 5:02 pm

Re: New Constraint - Pressure

Postby sgrogan » Sat May 16, 2015 11:18 am

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.
User avatar
PrzemoF
Posts: 2674
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: New Constraint - Pressure

Postby PrzemoF » Sat May 16, 2015 10:57 pm

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