|
[Sponsors] |
January 3, 2018, 16:24 |
Why COMSOL use FEM instead of FVM?
|
#1 |
New Member
Join Date: Jun 2016
Posts: 3
Rep Power: 10 |
Hi,
Why COMSOL use FEM instead of FVM? Is FEM has any advantageous over FVM? Thx |
|
January 3, 2018, 22:33 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
COMSOL is a multiphysics code first and a cfd code second. Solid mechanics and most electromagnetics solvers are FEM-based. There are FEM-based CFD solvers (using, say, Streamwise-Upwind Petrov Galerkin for convection) that have been around since the 1990s, so that fluids capability is a known quantity. In fact, FIDAP was a commercial CFD code back in the 90s. Practically, a multi-physics code should use the same mesh and the same data location points for all of its fields so interphysics coupling can be done in a consistent way. That makes FEM treatments the obvious choice.
FVM approaches for solid mechanics, EM, etc. are, of course, possible in principle, but are not as widely used and haven't had the same years of accumulated experience. IMO, FEM is a poor choice for pure CFD versus FVM or Discontinuous Galerkin Method, but COMSOL isn't pure CFD. |
|
January 5, 2018, 18:52 |
|
#3 | |
New Member
Join Date: Dec 2015
Posts: 27
Rep Power: 11 |
Quote:
|
||
January 5, 2018, 19:17 |
|
#4 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
FEM lacks a fundamental statement of conservation. FVM (and DG) are axiomatically conservative based on face flux integrals. FEM is defined as a minimization problem--find the solution that best reduces the Galerkin (or Least-Squares) residual of this system. For solid mechanics, that minimization statement makes a lot of sense--configuration of solid mechanical systems map nicely to variational formulations. Conservation equations, however, do not.
For simple flow physics, the difference is not really that important. FEM with linear shape functions *may* be a little more accurate than 2nd order FVM on a per-DOF basis. The FVM code will probably run a bit faster. But, the FVM code will *precisely* (to round-off error) conserve the mass entering and exiting a system. FEM will not be absolutely conservative, without some additional tweaking--using dark arts that I know not. This really becomes an issue with reacting flows, say, where trace concentrations of species can make significant differences. A one-part-in-ten-thousand mass imbalance is inconsequential in external aero or a lid driven cavity, but it could create a dramatic difference in flame shape or attachment points. Another reason is that FVM solvers are highly optimized for solving flow problems, by basically cutting every corner possible. Segregated solution methods, projection methods, frozen field preconditioning for Newton Krylov...the list is very long. FEM doesn't have these and they do not automatically transfer. FEM tends to do a great job of handling inter-field coupling because it creates a large stiffness matrix using all of the d.o.f.s, solving the system in a coupled manner. And while that is perfect for enforcing solid mechanics constitutive laws, that coupled approach *tends* to be suboptimal from a pure convergence/performance standpoint. The details of these differences are difficult to cover without really getting into the weeds. Suffice to say, FEM methods have grown one way to serve primarily solid mechanics. FVM methods have grown another way (really TWO other ways, as density-based and pressure-based solvers are hugely different in their own right). These decades of accumulated differences has resulted in tool specialization that is hard to overcome. |
|
January 6, 2018, 11:14 |
|
#5 |
Senior Member
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18 |
There is an FE method that is absolutely/precisely mass-conservative for incompressible flow in a pointwise sense, not just flow "entering and exiting a system". Using primitive variables, the basis functions are the curl of a stream function or vector potential element. To see code examples, go to cfd-online -> wiki -> source code archive -> educational -> {2D ... & 3D...}. Straight finite elements, no tweaking or dark arts involved, only thinking outside the box.
|
|
January 6, 2018, 11:54 |
|
#6 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Just to add a note: FVM can be see as a special case of FEM when the equations is projected along step-wise shape functions
|
|
January 6, 2018, 16:23 |
|
#7 | |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
Quote:
And of course, all of these problems go away with DG. So, why not just use DG. |
||
January 6, 2018, 18:25 |
DG and FVM
|
#8 |
Senior Member
Selig
Join Date: Jul 2016
Posts: 213
Rep Power: 11 |
Do you think DG will eventually replace FVM? DG combines the features of both FEM and FVM, but still seems to be a relatively new competitor in the scene.
|
|
January 7, 2018, 00:34 |
|
#9 |
Super Moderator
|
DG allows to go beyond second order even upto to the boundary. But this requires high order meshes which is not so well developed. Efficient implicit solvers is another obstacle. For real applications using RANS, the major issue is turbulence modelling, and having a high order method may not gain you much. Where high order methods may be more useful is in LES and of course DNS.
|
|
January 7, 2018, 05:49 |
|
#10 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
At the best of my knowledge, owing to the dissipative character, DG is mainly used in ILES approach. See for example: P. Fernandez, N.C. Nguyen, J. Peraire,The hybridized Discontinuous Galerkin method for Implicit Large-Eddy Simulation of transitional turbulent flows. J. Comp. Phys., 336, Pages 308-329, 2017.
I recently revised a PhD thesis about this issue and I think DG still needs some analyses in terms of LES formulation |
|
January 7, 2018, 05:56 |
|
#11 |
Super Moderator
|
High order schemes are an active area of research, see these workshops
1) http://dept.ku.edu/~cfdku/hiocfd.html 3) https://www.grc.nasa.gov/hiocfd/ 4) https://how4.cenaero.be 5) https://how5.cenaero.be (in 2018) The older ones have presentation slides and some status report also. |
|
January 7, 2018, 09:29 |
|
#12 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,291
Rep Power: 35 |
Quote:
What I find interesting is that most of these higher order methods are for Euler solvers with density based approach. I have been very slowly working on third order version of Wildkatze solver with pressure based approach. (SIMPLE type). Thought the base version is ready it need verifications so i would see if the solver could be validated and released to others. (Due to personal problems could not work for last 1.5 months but i will soon pick up). Having said this, do you know someone (or some place) where they are working on higher order solver with pressure based approach? |
||
January 7, 2018, 10:06 |
|
#13 | |
Senior Member
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18 |
Quote:
|
||
January 9, 2018, 15:03 |
|
#14 | |
New Member
B.M.
Join Date: Jan 2018
Posts: 1
Rep Power: 0 |
Quote:
|
||
January 10, 2018, 09:18 |
|
#15 |
Super Moderator
|
A lot of the high order research is focused on aerospace applications which need compressible solvers.
But there are some highly regarded high order solvers for incompressible flows, nek5000: https://nek5000.mcs.anl.gov Nektar: https://www.nektar.info And both are open source :-) |
|
January 11, 2018, 11:32 |
Spectral Element
|
#16 |
Senior Member
Selig
Join Date: Jul 2016
Posts: 213
Rep Power: 11 |
Do spectral elements suffer from the same types of issues as spectral methods, i.e. shock waves? Something I dislike about spectral methods is the need for smoothness . I think the spectral element is attractive due to spectral convergence, but how would it compare to a discontinuous galerkin method?
|
|
January 11, 2018, 11:42 |
|
#17 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Quote:
I could immagine a spectral reconstruction on average values that are regularized but it would be useful to check in the literature |
|
January 11, 2018, 22:50 |
|
#18 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,291
Rep Power: 35 |
Quote:
pressure based approach is also FV approach and shall be conservative. |
||
January 11, 2018, 22:53 |
|
#19 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,291
Rep Power: 35 |
Quote:
Both are finite element too. These are indeed incompressible flow solvers. Still though pressure based finite volume is missing. So far I am not able to find someone who is working on pressure based third order or higher. |
||
January 13, 2018, 09:57 |
|
#20 |
Senior Member
andy
Join Date: May 2009
Posts: 328
Rep Power: 18 |
COMSOL uses FEM because of how it evolved from the structural side where FEM has been the practical solution since the 60s. The fluid side is expressed in FEM speak/data structures to aid the multiphysics but if the implementations are efficient they will have a lot in common with FVM/FD codes. FEM is a general mathematical approach and as someone mentioned above one can express FVM/FD methods with it. Back in the 80s the company I worked for employed a university maths group to analyse the scheme of one of their internal FVM CFD codes that appeared to work well but unusually used upwinded control volumes which tended to sow a bit of doubt. The first thing the group did was express it as an equivalent FEM scheme because the FEM analysis tools were better developed.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forces from FVM to FEM conversion (fluid/structure interaction) | Abderahmane | Main CFD Forum | 4 | February 24, 2017 10:45 |
3D interpolation: From FVM to FEM nodes and back | vasilis | Main CFD Forum | 2 | October 15, 2008 04:33 |
FVM vs FEM | elwolv | Main CFD Forum | 8 | June 5, 2007 14:23 |
comments on FDM, FEM, FVM, SM, SEM, DSEM, BEM | kenn | Main CFD Forum | 2 | July 18, 2004 19:28 |
FEM or FVM for CFD | Astrid | Main CFD Forum | 18 | December 15, 2000 01:02 |