set_fixed_pressure
Set fixed pressure boundary condition.
Parameters
- shapes : Shape | ShapeList
- Shapes. Must be 'edge' in 2D, 'face' in 3D.
- pressure : float
- Pressure in kPa.
- minus_plus : str
- Side of the boundary the condition acts on: 'minus' (default) or 'plus'.
- variation : str
- Pressure variation over the shape: 'constant' or 'linear' (default).
- p1 : float
- Linear variation value in kPa at anchor point 1.
- p2 : float
- Linear variation value in kPa at anchor point 2.
- p3 : float
- Linear variation value in kPa at anchor point 3 (3D only).
- p1_location : list[float]
- Anchor point 1.
- p2_location : list[float]
- Anchor point 2.
- p3_location : list[float]
- Anchor point 3 (3D only).
Examples
sel = model.select([1,5], types='edge')
model.set_fixed_pressure(sel, pressure=100)
model.set_fixed_pressure(sel, pressure=100, minus_plus='plus')
model.set_fixed_pressure(sel, variation='linear', p1=50, p2=100,
p1_location=[0,0,0], p2_location=[0,5,0])