CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

PINN vs FVM

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By arjun
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2024, 11:46
Default PINN vs FVM
  #1
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 841
Rep Power: 18
sharonyue is on a distinguished road
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
sharonyue is offline   Reply With Quote

Old   May 25, 2024, 15:00
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,683
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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
LuckyTran is offline   Reply With Quote

Old   May 25, 2024, 18:27
Default
  #3
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,163
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
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.
sbaffini is offline   Reply With Quote

Old   May 25, 2024, 20:10
Default
  #4
Senior Member
 
Join Date: Jun 2011
Posts: 202
Rep Power: 15
CFDfan is on a distinguished road
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.
CFDfan is offline   Reply With Quote

Old   May 26, 2024, 00:00
Default
  #5
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by CFDfan View Post
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.


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.
sbaffini likes this.
arjun is offline   Reply With Quote

Old   May 26, 2024, 22:22
Default
  #6
Senior Member
 
Join Date: Jun 2011
Posts: 202
Rep Power: 15
CFDfan is on a distinguished road
Quote:
Originally Posted by arjun View Post
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.
Well, that's probably when you have some step or a cylinder, or a sphere, or some other basic shape for which you have the experimental results in advance and could play with the turbulence models, mesh density, etc. variables till you get some correspondence with the experiment. If you however deal with a complex 3D shape from the real world you'll be very, very lucky if you get 10% accuracy from the first run. And I mean from the first run, using the best practices and recommendations of a particular CFD code, because that's what is needed in 21 century. If you have to built a prototype and measure it and then start fiddling CFD parameters to get some closeness to reality you will be too late.
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.
CFDfan is offline   Reply With Quote

Old   May 27, 2024, 01:30
Default
  #7
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
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:
Originally Posted by CFDfan View Post
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.
While ahmed body is simple in shape, the physics involved is not simple. It has transitional turbulent flow where results heavily depend on separation etc.
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).
arjun is offline   Reply With Quote

Old   May 27, 2024, 03:34
Default
  #8
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,163
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by CFDfan View Post
Well, that's probably when you have some step or a cylinder, or a sphere, or some other basic shape for which you have the experimental results in advance and could play with the turbulence models, mesh density, etc. variables till you get some correspondence with the experiment. If you however deal with a complex 3D shape from the real world you'll be very, very lucky if you get 10% accuracy from the first run. And I mean from the first run, using the best practices and recommendations of a particular CFD code, because that's what is needed in 21 century. If you have to built a prototype and measure it and then start fiddling CFD parameters to get some closeness to reality you will be too late.
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.
I don't see how the two things relate. It's like saying: "The bus driver doesn't feel well today, but there is this kid here that is super fast on karts, let him drive". Not gonna happen.

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
sbaffini is offline   Reply With Quote

Old   May 29, 2024, 02:59
Default
  #9
Senior Member
 
Join Date: Jun 2011
Posts: 202
Rep Power: 15
CFDfan is on a distinguished road
Quote:
Originally Posted by arjun View Post
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.



While ahmed body is simple in shape, the physics involved is not simple. It has transitional turbulent flow where results heavily depend on separation etc.
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).
Arjun your comment on complexity/physics of the Ahmed body is just silly. Look at the 3D shapes in the world around you, or open a fan cooled power supply with hundreds of components with various shapes to realize that if a smooth like baby's ass Ahmed body is a complex CFD problem requiring 4 billion cells to accurately solve, then the real world CFD cases involving not only turbulent/ separating flows but heat transfer by convection/radiation, material porosity, fans with their PQ curves, thermal interface materials, etc, should be many many times more difficult to accurately solve. The Electronic industry is perfectly happy with 5-10% accuracy under the conditions I listed above, but from the first attempt and using say a high end computer. " Just give me something quickly even with a lower, but consistent accuracy so I could built a prototype that would work even not perfectly. I will refine it, during the next design iteration". That's what the industry cries for shortening the development time. If a cluster of supercomputers, running various turbulent models for many days is needed to process those billions of cells then this it is practically useless exercise. One can make tens of physical prototypes and optimize the design for less time and money.
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.
CFDfan is offline   Reply With Quote

Old   May 29, 2024, 03:08
Default
  #10
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by CFDfan View Post
Arjun your comment on complexity/physics of the Ahmed body is just silly. Look at the 3D shapes in the world around you, or open a fan cooled power supply with hundreds of components with various shapes to realize that if a smooth like baby's ass Ahmed body is a complex CFD problem requiring 4 billion cells to accurately solve,.



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)?
arjun is offline   Reply With Quote

Old   May 29, 2024, 05:23
Default
  #11
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,683
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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

Quote:
Originally Posted by CFDfan View Post
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.
The seaweed is always greener in somebody else's lake–and so are their wallets
sbaffini likes this.
LuckyTran is offline   Reply With Quote

Old   May 29, 2024, 06:13
Default
  #12
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
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:
Originally Posted by LuckyTran View Post
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
arjun is offline   Reply With Quote

Old   May 31, 2024, 01:19
Default
  #13
Senior Member
 
Join Date: Jun 2011
Posts: 202
Rep Power: 15
CFDfan is on a distinguished road
Quote:
Originally Posted by arjun View Post
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.
This is what i think.
Yes arjun, you are right. PINN will most probably be never more accurate than CFD. It is like "curve fitting" as somebody already pointed here, but if it produces quick and reliable result with up to say 10% accuracy that would make thousands of engineers very happy.
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.
CFDfan is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:13.