Dear Anne Cecile

To be more accurate, you impose a traction on a surface. What you mean with
"pressure" must be traction normal to the surface. For small deformations
the expression is very simple:

md.add_linear_term(mim, "-pressure*Normal.Test_u", BOUNDARY_REGION)

where pressure can be a constant, or a field defined (as data) on a
mesh_fem, or a field defined (as data) on a mesh_im_data structure, or some
GWFL expression.

For example, with

md.add_linear_term(mim, "(water_level-water_density*g*X(2))*Normal.Test_u",
BOUNDARY_REGION)

you would apply a depth-dependent traction acting on a submerged object in
water.

For large deformations, the formulas are more complex and the term
nonlinear, but apart from that, it is as easy to implement in GetFEM.

BR
Kostas

P.S. I am only in doubt about the sign of the overall expression, but you
can try both possibilities with + and - and see which fits you.




On Thu, Mar 24, 2022 at 5:47 PM Lesage,Anne Cecile J <
ajles...@mdanderson.org> wrote:

> Dear all
>
>
>
> I would like to impose an hydrostatic pressure on a mesh surface
>
> I think it is like impose a non constant stress normal to that surface,
> right?
>
> How shall I do that in a python script?
>
>
>
> Thank you
>
> Regards
>
> Anne-Cecile
> The information contained in this e-mail message may be privileged,
> confidential, and/or protected from disclosure. This e-mail message may
> contain protected health information (PHI); dissemination of PHI should
> comply with applicable federal and state laws. If you are not the intended
> recipient, or an authorized representative of the intended recipient, any
> further review, disclosure, use, dissemination, distribution, or copying of
> this message or any attachment (or the information contained therein) is
> strictly prohibited. If you think that you have received this e-mail
> message in error, please notify the sender by return e-mail and delete all
> references to it and its contents from your systems.
>

Reply via email to