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

foam-extend-3.1: fvm::grad(U) & fvc::grad(nu) ?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By pbohorquez
  • 1 Post By blais.bruno

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2015, 05:35
Default foam-extend-3.1: fvm::grad(U) & fvc::grad(nu) ?
  #1
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17
pbohorquez is on a distinguished road
Do you know if is it possible to solve implicitly the term "fvm::grad(U) & fvc::grad(nu)" in foam-extend-3.1 using the block matrix?
pbohorquez is offline   Reply With Quote

Old   April 24, 2015, 05:49
Default
  #2
New Member
 
Martin S.
Join Date: Apr 2015
Posts: 9
Rep Power: 11
schröder is on a distinguished road
yes, of course
schröder is offline   Reply With Quote

Old   April 24, 2015, 06:08
Default
  #3
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17
pbohorquez is on a distinguished road
Quote:
Originally Posted by schröder View Post
yes, of course
Is it straightforward? I tried to simply add this term in pUCoupledFoam but lots of errors arose during the compilation.
pbohorquez is offline   Reply With Quote

Old   April 24, 2015, 08:53
Default
  #4
New Member
 
Martin S.
Join Date: Apr 2015
Posts: 9
Rep Power: 11
schröder is on a distinguished road
It is not straightforward. It is impossible.
schröder is offline   Reply With Quote

Old   April 24, 2015, 09:01
Default
  #5
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17
pbohorquez is on a distinguished road
Quote:
Originally Posted by schröder View Post
It is not straightforward. It is impossible.
Is it really impossible even implementing the fvmLaplacianTranspose operator from the scratch?
Best wishes,
Patricio
pbohorquez is offline   Reply With Quote

Old   April 24, 2015, 09:45
Default
  #6
New Member
 
Martin S.
Join Date: Apr 2015
Posts: 9
Rep Power: 11
schröder is on a distinguished road
Assuming that you mean "solve term==0" by "solving the term", your problem is ill-defined.
Describe, WHAT you want to solve. Not HOW you want to solve it. Then it may be possible to help.

Martin
schröder is offline   Reply With Quote

Old   April 24, 2015, 10:10
Default
  #7
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17
pbohorquez is on a distinguished road
Quote:
Originally Posted by schröder View Post
Assuming that you mean "solve term==0" by "solving the term", your problem is ill-defined.
Describe, WHAT you want to solve. Not HOW you want to solve it. Then it may be possible to help.

Martin
I simply want to include into the momentum balance equation of a steady incompressible fluid of variable kinematic viscosity nu the term fvm::grad(U) & fvc::grad(nu) where U denotes the velocity field. In previous versions of openfoam we treated grad(U) explicitly by means of fvc::grad(U) & fvc::grad(nu). I want to use an implicit solver, i.e. fvm::grad(U), to improve the convergence. Is it clear enough to you now?
Kummi and openfoam_aero like this.
pbohorquez is offline   Reply With Quote

Old   June 2, 2015, 16:11
Default
  #8
Member
 
Bruno Blais
Join Date: Sep 2013
Location: Canada
Posts: 64
Rep Power: 12
blais.bruno is on a distinguished road
I guess (? I am not sure) that using fvm::grad(U) will lead to an implicit scheme being used. However, the issue you will have is that fvc::grad(nu) will be calculated with an explicit scheme applied to (nu). If you have a non-Newtonian fluid (where nu is a function of the shear rate, etc.) that part will remain fully explicit, so you will only get a "partially implicit" scheme at best... It might be preferable to keep everything explicit, but to go with a smaller time step instead.
Kummi likes this.
blais.bruno is offline   Reply With Quote

Reply

Tags
blockmatrix, foam-extend, jaretegvukcevicjasak, pucoupledfoam


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


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