|
[Sponsors] |
November 12, 2012, 18:09 |
changing matrix coeffs in a cell
|
#1 |
New Member
Join Date: Sep 2009
Posts: 15
Rep Power: 0 |
Hi Foamers,
i want to change the fvmatrix coeffs for a specific cell.(for this matrix) Code:
fvScalarMatrix TEqn ( fvm::ddt(T) + fvm::div(phi, T) - fvm::laplacian(DT, T) ); My idea for solving this problem would be to interpolate the faces of the cells and the calculate the the upper() and lower(). Here an example for the fvm::div: Code:
fvm.lower() = -weights.internalField()*faceFlux.internalField(); fvm.upper() = fvm.lower() + faceFlux.internalField(); fvm.negSumDiag(); how are the fvmatrix.source() terms described for div and laplacian? and is there a more elegant way? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 05:20 |
gradient calculation of cell centered finite volume method | zhengjg | Main CFD Forum | 10 | November 12, 2012 00:13 |
Help Me, what's the Cell Above in 3D. | gomane8 | Main CFD Forum | 0 | September 10, 2011 20:09 |
Mass flow rate through each cell | Babakjingo | Main CFD Forum | 0 | August 21, 2011 04:18 |
If I know one cell in the fluent ,how to find some other neigbor cell of it . | wwt650420 | FLUENT | 0 | March 23, 2011 12:12 |