Replies: 6 comments 3 replies
-
There's no API like that currently. It sounds like it would be useful enough to add, except that I'm not sure how it would be defined in general. I'd guess "h_x cos(theta) + h_y sin(theta)" for flow at an angle theta to a cartesian quad grid, for example, but what's the definition for flow at an angle to an arbitrarily oriented (or even twisted or quadratic and curved) prism? |
Beta Was this translation helpful? Give feedback.
-
I copied this formula from somewhere, I think @benkirk's dissertation maybe? Some care is needed to avoid dividing by zero, and the formula involves the inverse Jacobian for the element map, so I think not convenient to implement as an |
Beta Was this translation helpful? Give feedback.
-
Thanks.
I can add that to the assembly loop.
It looks enough for now.
Best regards, and happy new year!
Renato
Em seg., 3 de jan. de 2022 19:59, John W. Peterson ***@***.***>
escreveu:
… After double-checking more carefully, looks like this is the one from
Ben's dissertation:
[image: benkirk_flow_aligned]
<https://user-images.githubusercontent.com/1775907/147989315-1a29ffb8-4edc-4a78-adcc-4b902c586ce4.png>
NN = number of nodes on current Elem
\phi_k = Lagrange basis function k on current Elem
\hat{u} = unit vector in direction of velocity
—
Reply to this email directly, view it on GitHub
<#3111 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMOVERYLOGM6GIGGZO7DGB3UUIS3TANCNFSM5LCWYNJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
What is the PDE, a scalar transport equation or a system? For scalars, something like above is usually good enough, the idea being define some length scale aligned with the flow direction. For linear elements anyway you can envision the shape-function dot product thing working out. For systems like compressible Navier Stokes & MHD specifically, things get more complicated and theres some nice approaches from Glasby & Anderson using eigenvalue transformation magic. I can provide some references if interested. |
Beta Was this translation helpful? Give feedback.
-
Hi Benjamin,
Is is a convection dominated PDE.
We are working with thermal-poro-elasticity, so displacements and pressure
are solved fully coupled while temperature is solved sequentially in a
convection-diffusion PDE. Velocity comes from the pressure gradient
(Darcy's law).
It happens that diffusion is very low and the system oscillates near the
well (at higher velocities).
I am trying to implement a simple Petrov Galerkin scheme, believing it
won't get more complex than that... but we are not sure yet...
Any suggestions and good references are of course really welcome!
Thanks for the help.
Best regards,
Renato
Em ter., 4 de jan. de 2022 14:15, Benjamin S. Kirk ***@***.***>
escreveu:
… What is the PDE, a scalar transport equation or a system? For scalars,
something like above is usually good enough, the idea being define some
length scale aligned with the flow direction. For linear elements anyway
you can envision the shape-function dot product thing working out.
For systems like compressible Navier Stokes & MHD specifically, things get
more complicated and theres some nice approaches from Glasby & Anderson
using eigenvalue transformation magic. I can provide some references if
interested.
—
Reply to this email directly, view it on GitHub
<#3111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMOVER3ZDQKWIIE2XIOVXYLUUMTKZANCNFSM5LCWYNJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much!
Best regards,
Renato
Em ter., 4 de jan. de 2022 às 18:04, Benjamin S. Kirk <
***@***.***> escreveu:
… For a scalar PDE (temperature transport with a given velocity field),
finding h as above should hold together.
For coupled systems of equations, with different characteristics that each
behave differently, thing can get more complicated. The most effective
stuff I found is summarized below. Much of this is in the recent AIAA
literature.
https://arc.aiaa.org/doi/pdf/10.2514/6.2013-2559
http://crossmark.crossref.org/dialog/?doi=10.2514%2F6.2013-2559&domain=pdf&date_stamp=2013-06-22
The paper and presentation are here:
https://drive.google.com/drive/folders/1CoXfw-ASxwlcm6g0IVsBu_V4JERMXgLt?usp=sharing
is the probably most relevant summary of where my efforts went asymptotic
a number of years ago.
I focused almost exclusively on shock dominated & P=1 SUPG. Using the tau
described in here that worked great for hanging node AMR, with typical 2:1
stretching there.
Ryan Glasby’s taken compressible Navier Stokes SUPG to the next level, but
with less focus on shock dominated flows:
https://arc.aiaa.org/doi/10.2514/6.2016-0567
https://arc.aiaa.org/doi/10.2514/6.2016-1054
https://arc.aiaa.org/doi/pdf/10.2514/6.2018-0781
https://arc.aiaa.org/doi/10.2514/6.2019-1344
Kyle Anderson’s recent AIAA SUPG, P=1 & P=2
https://arc.aiaa.org/doi/10.2514/6.2018-1307
https://arc.aiaa.org/doi/10.2514/1.C034482
Kyle's been working SUPG internal to NASA’s FUN3D framework as well, I
believe.
—
Reply to this email directly, view it on GitHub
<#3111 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMOVERYFY2T5B6V377VDBSDUUNOG3ANCNFSM5LCWYNJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to stabilize a convection dominated problem. I am trying to calculate the Peclet number and for that I have use for the element characteristic length, defined as the element size in the flow direction.
I understand there are possible simplifications, but I am wondering if libmesh have hooks to help me with that.
I can see functions like Elem::volume, Elem::hmax, Elem::hmin, for example ...
Any idea on how I can do that?
Thanks,
Renato
Beta Was this translation helpful? Give feedback.
All reactions