<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<br>
<div>
<div>Le 3 mars 2020 à 11:43, Alberto Sánchez Ramírez <<a href="mailto:albertosanchezramirez94@gmail.com">albertosanchezramirez94@gmail.com</a>> a écrit :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
Good morning,</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
I would like to start by thanking you for creating such a great software and distributing it for free.</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
I intend to use to it perform calculations on linear elasticity.</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
To illustrate my question, I will use a simple example: </div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
Let's say I want to compute the stress that arises inside a tube when it is subjected to an internal pressure.</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
I have created the mesh on gmsh by creating two cylinders and substracting them, giving rise to a tube. Then I have defined the inner wall of the tube as a physical surface.</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
I am following one of the tutorials provided with GetDp, in particular the file wrench2D.pro</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
When it comes to defining the pressure acting on the surface, the file says:</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit">Integral { [ pressure_x[] , {ux} ];<br>
</span><span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit"> In Sur_Force_Mec ; Jacobian Sur ; Integration Gauss_v ; }</span><br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>Hello Alberto,</div>
<div><br>
</div>
<div>You do not give the files of your model, but in principle</div>
<div>you have the function </div>
<div><br>
</div>
<div><dt><code>Normal</code>[] : Computes the normal to the element</dt><dt><br>
</dt><dt>which you can use as follows (2D case):</dt><dt><br>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; vertical-align: baseline; color: inherit;">Integral { [ pressure[] * CompX[ Normal[] ] , {ux} ];<br>
</span><span style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; vertical-align: baseline; color: inherit;"> In Sur_Force_Mec ; Jacobian Sur ; Integration
Gauss_v ; }</span><br>
</div>
</div>
<div>
<div dir="ltr">
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; vertical-align: baseline; color: inherit;">
<div dir="ltr" style="font-family: Helvetica; font-size: 12px;">
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; vertical-align: baseline; color: inherit;">Integral { [ pressure[] * CompY[ Normal[] ] , {uy} ];<br>
</span><span style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; vertical-align: baseline; color: inherit;"> In Sur_Force_Mec ; Jacobian Sur ; Integration
Gauss_v ; }</span><br>
</div>
</div>
<div style="font-family: Helvetica; font-size: 12px;">
<div dir="ltr"></div>
</div>
</span></div>
</div>
</div>
</div>
</div>
</dt></div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Fr. </div>
<br>
<blockquote type="cite">
<div dir="ltr">
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit"><br>
</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit">Because in that case the pressure was acting in the x direction. However, in my case, the pressure is not acting in a defined direction, but normally to a surface.</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit"><br>
</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit">How can I translate this equation to take into account pressures acting normally against a surface with an arbitrary shape?</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit"><br>
</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit">Do I have to change other parts of the code?</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit"><br>
</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;color:inherit">Thanks in advance.</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 12pt; line-height: inherit; font-family: Calibri, Arial, Helvetica, sans-serif; vertical-align: baseline;">
<br>
</div>
</div>
_______________________________________________<br>
getdp mailing list<br>
<a href="mailto:getdp@onelab.info">getdp@onelab.info</a><br>
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fonelab.info%2Fmailman%2Flistinfo%2Fgetdp&data=02%7C01%7Cfrancois.henrotte%40uclouvain.be%7Cb7bd15d252a04635aefc08d7c01d45d2%7C7ab090d4fa2e4ecfbc7c4127b4d582ec%7C0%7C0%7C637189104323734639&sdata=h9ERsh4cuE4sXmiYnlKiyW6wALoQTjhHC4yoQgmS3A8%3D&reserved=0<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div style="orphans: 2; widows: 2;">
<div>--</div>
<div>François Henrotte Dr Ir - <span style="text-align: -webkit-auto;"><a href="mailto:francois.henrotte@uclouvain.be">francois.henrotte@uclouvain.be</a></span><span style="text-align: -webkit-auto;"> - </span><span style="text-align: -webkit-auto;"><a href="mailto:francois.henrotte@uliege.be">francois.henrotte@uliege.be</a> </span></div>
<div>UCLouvain - Bât. Euler a.217 - Av. G. Lemaître 4-6 , <span style="text-align: -webkit-auto;">B-1348 Louvain-la-Neuve - </span><span style="text-align: -webkit-auto;">+32(0)10 47 23 64 </span></div>
<div><span style="text-align: -webkit-auto;">ULiège - Institut Montefiore I154 - Allée de la Découverte 10, B-4000 Liège - +32(0)4 366 37 36 </span></div>
<div><span style="text-align: -webkit-auto;"><br>
</span></div>
</div>
</div>
<div><span style="text-align: -webkit-auto;"><br>
</span></div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</body>
</html>