-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stokes3D.py Incurs High Error after Changing the Coefficients of the Periodic Flow on the X-Y Plane #33
Comments
The manufactured solutions should be periodic, otherwise a large error is incurred. If you absolutely need to use
Not sure what your true objective is here? If you are looking for which basis functions that have the greatest contributions to the solution I think you should look at the coefficients Regarding the block matrix M, remember that this matrix represents the Legendre/Chebyshev part of the problem, and there is one matrix M for each Fourier coefficient. I have tried to explain this in the Stokes demo |
Not without changing the domain. You would need to use for example
or perhaps Reducing the number of modes is easy, there are already functions available for this. See refine and assign. About the cavitations, could you please be more specific? |
I'm sorry for the late response. I have been able to successfully form a reduced order model of the fluid dynamics using As a separate project, I've been trying to apply this to the mhd solver in your gist. For tgmhd.py on line 33, I receive
Should I be using shape or global_shape() instead? |
It should be just shape. Makes no difference if you use only one cpu. |
When running
Does the refine method occasionally fail for Functions of dimensionality greater than one? The intended functionality Is there a general method for performing something similar to https://youtu.be/X5GhhjpX0ao?t=2145? Or, could someone form a new model of the fluid dynamics after solving the original system via the blockmatrix? Could the modes of this new model be chosen to preserve the greatest variance of the original system using a technique such as singular value decomposition? |
When one changes
uex = sin(2*y)*(1-z**2)
touex = sin(2.05*y)*(1-z**2)
in the manufactured solution, the error for the x-component of the flow velocity increases from 3.9229e-14 to 2.672e0.Would I need to change some of the parameters when creating the Fourier basis for the periodic flow on the x-axis?
Furthermore, would it be possible to perform a singular value decomposition on the non-exact solution produced by Shenfun to determine which basis functions preserve the greatest variance of the fluid dynamics. Would the following code suffice?
variance_decomposition.png
variance_modes.png
The resulting modes are quite jumbled as I am having trouble separating the various axes of the block matrix M.
meshgrid.png
Here is my pictorial understanding of the local mesh X. However, I don't have an intuitive grasp on block matrix M.
The text was updated successfully, but these errors were encountered: