|
[Sponsors] |
May 24, 2024, 11:46 |
PINN vs FVM
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 841
Rep Power: 18 |
Hello guys,
It looks PINN is quite popular and it is used to solve PDE. There are tons of papers that employing PINNs to solve NS or similar equations. However, I am wondering if PINN will defeat FVM regarding on the CFD application in the short run or in the long run. Any opinion is welcomed. Thanks.
__________________
My OpenFOAM algorithm website: http://dyfluid.com By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html |
|
May 25, 2024, 15:00 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,683
Rep Power: 66 |
Neural networks are just the latest and greatest tools in inference, which is a fundamentally different category than algorithmic arithmetic. NN's are basically solving for an approximate mapping from A=>NN(A)=>B. and then finds an approx'mate B' from A'=>NN(A')=>B'
Arithmetic, calculates B from a mapping from A, i.e. B=f(A) and then B'=f(A'). NN's are an advanced form of curve fitting. When Gauss invented least squares or when his predecessors invented curve fitting, none of them claimed that curve fitting would replace make linear solvers obsolete. And we use linear solvers nowadays wayyy more than they were used in Gauss's days, by orders of orders of magnitude. NN's offer an alternative field of growth for applied computing and is especially suitable in fields where accuracy is not a concern, but it is not predator in the computing ecosystem and both will likely continue to evolve together just as linear solvers and statistical toolboxes have grown together in the past Finally, NN's still need to be re-trained whenever the inputs or the mapping changes and so you will need tools to do to provide this training. We still teach kids how to find exact solutions to 1+1=2. We are unlikely to ever accept an ANN response like 1+1 is approximately 2.01 |
|
May 25, 2024, 18:27 |
|
#3 |
Senior Member
|
Let me first say that the fact itself that PINN (can) exist is fascinating and amazing.
Now, I know very little of PINN but, computational physics, as a whole, is about numerically solving the mathematical version of a physical problem with known and controllable error bounds. You take that out of the picture and there's no more engineering in whatever remains. It is my understanding that this is, at least, a grey area, if not completely out of question, even for NN in general. Second, there is an industry that actually provides computational tools for other industries to use them. Now, the mathematical software industry is a beast of its own and such that the remaining general software industry and coding at the academic and research level are both child games in comparison. It has standards, procedures, and infinite verification possibilities which simply can't be neglected. And this industry has found this thing, the unstructured FV method, which is order of magnitudes easier to implement, extend and maintain with respect to any other method out there, is as flexible and robust as you might dream, sufficiently accurate already at second order and trivial to work with in parallel on commodity hardware. I will also add that you need to be a non engineer to not understand how the FV is intrinsically based on a concept which is at the core of all our problem schematizations. We all understand conservation and the trivial fact that the more conservation statements (cells) you use, which are per se exact statements, the more accuracy you get. How powerful. So, for sure, anything can happen, but that's the playfield, and PINN is not even playing the same game. In fact, no serious person could ever claim that one is a replacement for the other. Kind of the same way LES is not a replacement for RANS, full 3D methods are not a replacement for panel methods or genetic algorithms are not a replacement for other optimization techniques. |
|
May 25, 2024, 20:10 |
|
#4 |
Senior Member
Join Date: Jun 2011
Posts: 202
Rep Power: 15 |
The CFD theory, and especially its implementation, are in a sorry state and AI is maybe the thing needed to guarantee some degree of reliance on the results. Most of the industries would have been perfectly happy with 5-10%, but consistent, CFD accuracy.
|
|
May 26, 2024, 00:00 |
|
#5 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34 |
Quote:
It looks like you need better cfd solver or you might need to learn how to use it. 5 to 10 percent of accuracy in results doesn't cut it and people get excellent results all the time. |
||
May 26, 2024, 22:22 |
|
#6 | |
Senior Member
Join Date: Jun 2011
Posts: 202
Rep Power: 15 |
Quote:
Just google "Ahmed body" which is an almost 50 years old paper with drag and lift coefficient measurements in a wind tunnel on an ugly, basic shape car. People have since then been writing hundreds of papers and PHD dissertations on this basic shape trying to get correspondence between simulation and experimental results. Over the years I've been keeping an eye on such papers and have never seen one that claims 1% accuracy for BOTH drag and lift coefficients. The majority of the authors (professionals like you) got satisfied with 5% accuracy of Cd and Cl. And again, this is a silly 3D-shape with no, say, heat transfer. If the latter has to be studied in complex, electronic products with forced air cooling the accuracy of the major CFD cores is laughable. If AI is the only hope to fix this then let it be. |
||
May 27, 2024, 01:30 |
|
#7 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34 |
1. 5% of accuracy and within 5% of error margin are two different things. You should be little bit more clear on things. 5% of accuracy is very easy to get by while 5% within error margin well depends on what you are solving.
2. Quote:
You are confusing simple shape with simple problem. It is not an example of simple problem. Specially when turbulence is mainly unsolved problem. 3. Not all CFD is about calculating drag and lift for separating flows. People get good results for complicated geometry all the time. One complicated example does not decide the whole CFD field. 4. The accuracy of CFD solutions can be increased by using finer meshes and going towards LES/DNS. For example far difficult problem of rotating golf balls we got very accurate and reliable results using meshes of 2 billion to 4 billion cells. Last 5. Solution of CFD solver's inaccuracy is more accurate methods (higher order, spectral methods etc) and finer meshes and NOT neural networks that are approximations in nature. Neural networks are specially bad idea for calculating drag and lift of a body (because then you are looking for more than pretty picture of an approximate flow field). |
||
May 27, 2024, 03:34 |
|
#8 | |
Senior Member
|
Quote:
As a different example, in Italy we are, almost everywhere, at risk for earthquakes and most of the buildings, in certain zones, demand a sismic design, which is based on FEM computations. My question is: would you live in any such building knowing the computations came from a PINN? Especially for old buildings in hystorical centers, linked to other unaccessible buildings, maybe with several unaccessible underground cavities, the job is plagued by several uncertainties and is no less troublesome than turbulence and such. My genuine answer here is NO. Besides the fact that adding new physics to a PINN requires retraining (so there is, in my opinion, the whole topic of IF and WHEN the economics of this tools really adds up), and you still need CFD to train or retrain, I feel very uncomfortable with the typical underlying message I can read: "you are either doing cfd wrong or uselessly, make it fast at least with AI". Maybe leave CFD for good if your desing doesn't really depend so much on results that it can afford the risk of random ones |
||
May 29, 2024, 02:59 |
|
#9 | |
Senior Member
Join Date: Jun 2011
Posts: 202
Rep Power: 15 |
Quote:
Yes, you have your valid reasons, the processes are very complex, the CFD theory is underdeveloped, its implementation in the CFD codes is not satisfactory and that's what the users are currently facing when using the CFD codes - messy to setup, costly to solve and even worse - producing results with inconsistent accuracy. AI and NN seemed to me like a gulp of fresh air for getting out of the current misery. If AI, NN, PINN, etc. methods are not a panacea, then we are to stay in the mud for a very long time. |
||
May 29, 2024, 03:08 |
|
#10 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34 |
Quote:
Never claimed that you need 4 billion points to solve Ahmeds body, that was claim about golf balls that are far more challenging that this Ahmeds body. Still the point stays that body may be simple but physics involved is not. Your inability to understand this fact won't change facts. What is silly is to think that approximate methods like PINN or networks trained on CFD results is going to bring you more accuracy. There is no denying that with more resources CFD can produce far better results than approximate solutions. Do you have any paper or references that show that PINN has produced better results than very fine LES (lets leave DNS aside)? |
||
May 29, 2024, 05:23 |
|
#11 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,683
Rep Power: 66 |
I have a very sophisticated PINN that sits between my shoulders. But I never claimed that I would never need to do CFD or that anyone can do CFD without a brain. But evidenced by the fact that I still do CFD, it must be very poorly trained
The seaweed is always greener in somebody else's lake–and so are their wallets |
|
May 29, 2024, 06:13 |
|
#12 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34 |
The way I see all this is that these could provide some quick estimations that are either usable or not based on user's demands.
But when someone (not you) is claiming that it would improve the accuracy that current state of CFD lacks then this is a claim that is very hard to believe. For example if CFD is not so accurate then the networks trained on them will be equally (or worsely) accurate and not more. Then it leaves us with PINN only. Which begs the question what is the information these NNs are informed with that CFD can't be informed of. For example lets say NN is informed of Poisson operator then it can help make quick prediction of a Poisson equation. But could it be more accurate than what we could achieve with CFD (specially when very fine meshes are involved with higher orders). I very much doubt that PINN would out do CFD here in accuracy. So this claim is hard to be trusted until its proven otherwise. This is what i think. Quote:
|
||
May 31, 2024, 01:19 |
|
#13 | |
Senior Member
Join Date: Jun 2011
Posts: 202
Rep Power: 15 |
Quote:
Look at the result chatGPT produces on a topic you are interested in. For sure it could be refined, but it is usable and quite close to your target. Some time ago I read that for its answer chatGPT processes information from 20 million sources and that number is probably higher now. There is a huge difference of course between generating a text and generating a CFD result, but AI enhances with such high rate that in 5-10 years CFD could be very different. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to understand FDM vs FVM vs Conservative form vs Non-conservative form | granzer | Main CFD Forum | 5 | December 4, 2019 03:00 |
Practical difference between FVM and LBM? | pharg_yrartibra | Main CFD Forum | 2 | November 25, 2013 10:52 |
FVM in 1-D spherical coordinates | lost.identity | Main CFD Forum | 0 | January 17, 2011 09:06 |
comments on FDM, FEM, FVM, SM, SEM, DSEM, BEM | kenn | Main CFD Forum | 2 | July 18, 2004 18:28 |
References for FVM | Anthony Wachs | Main CFD Forum | 8 | February 20, 2002 19:23 |