New Constraint - Pressure
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
New Constraint - Pressure
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 (505.54 KiB) Viewed 3151 times
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: New Constraint - Pressure
Beautiful!!
Re: New Constraint - Pressure
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?
Did you change arrow color in the icon as well?
"fight the good fight"
Re: New Constraint - Pressure
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?
"fight the good fight"
Re: New Constraint - Pressure
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.
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.
Re: New Constraint - Pressure
The default colours for each constraint would be best in preference not in each constraint gui.PrzemoF wrote:... Edit2: We only have to decide on the default colours - the normal way of changing colours works fine for constraints.
Re: New Constraint - Pressure
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.
red=node constraint
blue=element face constraint
green=element volume constraint
Some sort of selection indicator is another great idea.
"fight the good fight"
Re: New Constraint - Pressure
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.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.
The Pressure constraint is ready for testing: https://github.com/PrzemoF/FreeCAD_sf_m ... ressure_v2