|
[Sponsors] |
February 12, 2020, 02:45 |
fvVectorMatrix, trying to understand
|
#1 |
Senior Member
|
Code:
fvVectorMatrix UEqn ( fvm:ddt(U) + fvm::div(phi,U) == fvOptions(U) ) my question: is this implementation taking operator overloading in the constructor definition of the fvVectorMatrix class? Can anyone provide any insight? Ultimate purpose being trying to implement an equation of this kind in a 2D CFD code i am writing. Kind regards M Sereez |
|
April 3, 2020, 14:03 |
|
#2 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23 |
Hi, take a look of gdbOF.
Regards!
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D. Research Scientist Research Center for Computational Methods (CIMEC) - CONICET/UNL Tel: 54-342-4511594 Int. 7032 Colectora Ruta Nac. 168 / Paraje El Pozo (3000) Santa Fe - Argentina. http://www.cimec.org.ar |
|
April 5, 2020, 15:32 |
fvVectorMatrix construction
|
#3 |
Member
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8 |
Yes.
Temporary fvVectorMatrix is created for each terms and with overloaded operators are used to make single temporary fvVectorMatrix and the fvVectorMatrix is created. Quick tip:- Use doxygen:- https://www.openfoam.com/documentati...doc/index.html Find functions, observe parameters and return type and constructors. Last edited by Rvadrabade; April 6, 2020 at 00:48. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extracting the matrix data from an fvVectorMatrix | stevemoore1981 | OpenFOAM | 7 | October 20, 2020 07:50 |
Trying to understand BC's following elbow tutorial | nik | OpenFOAM | 2 | July 31, 2013 11:15 |
Why don't we understand turbulence? | gocarts | Main CFD Forum | 7 | February 3, 2007 03:12 |
Help to understand these two images | Freeman | Main CFD Forum | 4 | March 15, 2006 09:21 |
Apparently we don't understand definition of "h"?! | Chris Bailey | Main CFD Forum | 6 | October 18, 2005 13:37 |