pyoomph.utils.dropgeom module
- class pyoomph.utils.dropgeom.DropletGeometry(*, volume=None, base_radius=None, contact_angle=None, apex_height=None, curv_radius=None, ambiguous_low_contact_angle=None, evalf=True, rivulet_instead=False)[source]
Bases:
objectA helper class to calculate the geometry of a droplet from a set of parameters. You must specify exactly two of the following parameters:
- Parameters:
volume (
Union[Expression,int,float,None]) – The volume of the dropletbase_radius (
Union[Expression,int,float,None]) – The base radius (contact line radius) of the dropletcontact_angle (
Union[Expression,int,float,None]) – The contact angle of the dropletapex_height (
Union[Expression,int,float,None]) – The apex height of the dropletcurv_radius (
Union[Expression,int,float,None]) – The curvature radius of the dropletambiguous_low_contact_angle (
Optional[bool]) – If you set base_radius and curv_radius, you must specify if the contact angle is below or above 90°evalf (
bool) – If True, the result will be evaluated to a float. If False, the result will be kept as an expressionrivulet_instead (
bool) – If True, the droplet is assumed to be a rivulet, i.e. it is just a 2d cross section of a 3d droplet. The volume is then the area of this cross section.
-
apex_height:
Union[Expression,int,float] The apex height of the droplet
-
base_radius:
Union[Expression,int,float] The base radius of the droplet
-
contact_angle:
Union[Expression,int,float] The contact angle of the droplet
-
curv_radius:
Union[Expression,int,float] The curvature radius of the droplet
-
volume:
Union[Expression,int,float] The volume of the droplet