|
[Sponsors] |
August 9, 2012, 18:00 |
Problem about fvm::grad
|
#1 | ||
Member
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 59
Rep Power: 14 |
HI, ALL
As you know, in OF, the gradient operator only has fvc type. But if we want to write a coupled algorithm, we have the make a fvm::grad function. I have write fvmGrad.C file define the fvm::grad function. Since the gradient of a scalar field is a vector field. So the gradient matrix should actually be three different scalar matrix, returns each component separately by multiple p scalar field. Now I have met two problems, first is about the initialization of the faceInterpolationScheme. Can some body give a example how to initial a faceInterpolationScheme?? I need this is because I need the weight to interpolation cell value to get face value. The second problem is that when I initial the matrix coefficient like this Quote:
Quote:
Has anybody tried to do this before?? thank you in advance |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |