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

implicit - scalar product source term in momentum equation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By vinch

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2014, 14:57
Default implicit - scalar product source term in momentum equation
  #1
New Member
 
vinch
Join Date: Dec 2011
Posts: 4
Rep Power: 14
vinch is on a distinguished road
Dear all,
I would like to add an implicit source term to the momentum equation of the fluid solver (in the BuoyantBoussinesqPimpleFoam framework.
I read on this forum the following thread :
http://www.cfd-online.com/Forums/ope...-equation.html
where the user needed to add a non linear term. The expression of my source term is different and the solutions given were not satisfying I guess, so I think this is worth having a new thread.

I would like to add a source term looking like this :
F = a (G . U) K
where the capital quantities are vectors. U is the unknown velocity.
In the code, I used the following lines :

Code:
    fvVectorMatrix UEqn
    (
        fvm::ddt(U)
      + fvm::div(phi, U)
      + turbulence->divDevReff(U)
      + a * (G & U) * K
      ==
      fvOptions(U)
    );
but this way, the force is fully explicit.
I can't use the fvm::Sp() method since the second argument required is the variable being implicit, and it expects a vector, not the result of a scalar product.

My question is thus, is there a way to write this as a fully implicit source term ?
vinch 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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
UDF for source term in momentum equation Enrico FLUENT 9 May 30, 2014 11:34
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
viscosity term in discetrization momentum equation hans-186 Main CFD Forum 4 April 1, 2013 13:34


All times are GMT -4. The time now is 09:04.