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

The difference between fvMatrix and blockMatrix

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2016, 21:03
Default The difference between fvMatrix and blockMatrix
  #1
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 8
Thomas pan is on a distinguished road
Hi, foamers

I found fvm::div(phi) which is blockVectorMatrix in foam-extend3.1 fvmDiv.H.
PHP Code:
template<class Type>
    
tmp<blockVectorMatrixdiv
    
(
        
GeometricField<TypefvPatchFieldvolMesh>&,
        const 
word&
    );

    
template<class Type>
    
tmp<blockVectorMatrixdiv
    
(
        
GeometricField<TypefvPatchFieldvolMesh>&
    ); 
But why there isn't <fvMatrx>fvm::div(phi)? I want to use a implicit scheme such fvm::div(rhoFlux) in densityBased solver. Can I implement it like this:
PHP Code:
template<class Type>
    
tmp<fvMatrixdiv
    
(
        
GeometricField<TypefvPatchFieldvolMesh>&
    ); 
Who can tell me the difference between fvMatrix and blockMatrix? How can I implememnt fvm::div(phi)? I can't express it as fvm::div(rho,phi), because rhoFlux is calculated by such as roe scheme.
Thomas pan is offline   Reply With Quote

Old   March 15, 2016, 02:01
Default
  #2
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 8
Thomas pan is on a distinguished road
no one can help me?
Thomas pan is offline   Reply With Quote

Old   June 5, 2016, 20:32
Default
  #3
New Member
 
WangYi
Join Date: Dec 2015
Location: Xi'an China
Posts: 7
Rep Power: 7
youmengtear is on a distinguished road
i'm using extend3.2. In this version in fvm namespace have div and UDiv. The difference is the backtrack is fvMatrix or BlockLduSystem. From 3.1 the coupled system has been introduced. I think blockMatrix is introduced for this reason
youmengtear is offline   Reply With Quote

Reply

Tags
block, div, fvm, matrix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



All times are GMT -4. The time now is 15:20.