CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

fvVectorMatrix, trying to understand

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By shereez234
  • 1 Post By santiagomarquezd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2020, 02:45
Default fvVectorMatrix, trying to understand
  #1
Senior Member
 
shereez234's Avatar
 
M Sereez
Join Date: Jan 2014
Location: England
Posts: 352
Blog Entries: 1
Rep Power: 13
shereez234 is on a distinguished road
Code:
fvVectorMatrix UEqn
(
    fvm:ddt(U) 
+  fvm::div(phi,U)
    ==
    fvOptions(U)
)
Hi, so i am trying to understand how this Matrix is implemented in terms of C++ programming.
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
nepomnyi likes this.
shereez234 is offline   Reply With Quote

Old   April 3, 2020, 14:03
Default
  #2
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Hi, take a look of gdbOF.

Regards!
Rvadrabade likes this.
__________________
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
santiagomarquezd is offline   Reply With Quote

Old   April 5, 2020, 15:32
Default fvVectorMatrix construction
  #3
Member
 
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8
Rvadrabade is on a distinguished road
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.
Rvadrabade 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
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


All times are GMT -4. The time now is 21:37.