changing matrix coeffs in a cell
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? |
All times are GMT -4. The time now is 13:49. |