<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks a lot Paul! That is exactly what I was looking for (and what I had assumed) although I prefer to double check :)<div class=""><br class=""></div><div class="">Regards,<div class=""><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;">Jean-Christophe B. Loiseau</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;">Maître de conférence</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;">DynFluid, Arts et Métiers ParisTech</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;"><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;"><a href="https://sites.google.com/site/loiseaujc/" class="">Homepage</a></div></div>
</div>
<br class=""><div style=""><blockquote type="cite" class=""><div class="">On 30 Mar 2017, at 14:22, <a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; 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; direction: ltr; font-family: Tahoma; font-size: 10pt;" class=""><br class="Apple-interchange-newline">Dear JC,<div class=""><br class=""></div><div class="">Yes --- just pull a copy of the common block out of torq_calc in navier5.f:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class=""> common /ctorq/ dragx(0:maxobj),dragpx(0:maxobj),dragvx(0:maxobj)</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class=""> $ , dragy(0:maxobj),dragpy(0:maxobj),dragvy(0:maxobj)</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class=""> $ , dragz(0:maxobj),dragpz(0:maxobj),dragvz(0:maxobj)</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class="">c</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class=""> $ , torqx(0:maxobj),torqpx(0:maxobj),torqvx(0:maxobj)</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class=""> $ , torqy(0:maxobj),torqpy(0:maxobj),torqvy(0:maxobj)</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class=""> $ , torqz(0:maxobj),torqpz(0:maxobj),torqvz(0:maxobj)</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class="">c</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class=""> $ , dpdx_mean,dpdy_mean,dpdz_mean</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class=""> $ , dgtq(3,4)</p><p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;" class="">c</p><div class=""><br class=""></div><div class=""><br class=""></div><div class="">There you have access to all components, including breakdown into pressure and viscous</div><div class="">contributions. </div><div class=""><br class=""></div><div class="">If you have only one object (or surface),</div><div class=""><br class=""></div><div class=""> dragx(0) = force in x direction (typ., = drag)</div><div class=""> dragy(0) = force in y direction (typ., = lift)</div><div class=""><br class=""></div><div class="">If you have multiple objects/surfaces, then dragx(k)=force in x direction on object k, k=1,...</div><div class="">and dragx(0) = sum_k=1,.. dragx(k)</div><div class=""><br class=""></div><div class="">Paul</div><div class=""><br class=""></div><div style="font-family: 'Times New Roman'; font-size: 16px;" class=""><hr tabindex="-1" class=""><div id="divRpF303273" style="direction: ltr;" class=""><font face="Tahoma" size="2" class=""><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov" class="">nek5000-users-bounces@lists.mcs.anl.gov</a> [<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov" class="">nek5000-users-bounces@lists.mcs.anl.gov</a>] on behalf of <a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a> [<a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a>]<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, March 30, 2017 3:33 AM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Nek 5000<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>[Nek5000-users] Accessing the value of drag and lift coefficients in usrchk<br class=""></font><br class=""></div><div class=""></div><div class="">Hi Nek,<div class=""><br class=""></div><div class="">I was wondering whether it was possible to access the values of the drag and lift coefficient directly into usrchk?</div><div class="">I know how to compute them but they only get printed in the logfile. I would need them for a control problem.</div><div class=""><br class=""></div><div class="">Thanks a lot</div><div class=""><br class=""><div class=""><div class="" style="word-wrap: break-word;"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" class="">Jean-Christophe B. Loiseau</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" class="">Maître de conférence</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" class="">DynFluid, Arts et Métiers ParisTech</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;" class=""><a href="https://sites.google.com/site/loiseaujc/" class="" target="_blank">Homepage</a></div></div></div><br class=""></div></div></div></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class="">Nek5000-users mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class=""><a href="mailto:Nek5000-users@lists.mcs.anl.gov" class="">Nek5000-users@lists.mcs.anl.gov</a></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class=""><a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" class="">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a></span></div></blockquote></div><br class=""></div></div></body></html>