|
[Sponsors] |
January 14, 2013, 14:41 |
Accessing Coefficient Matrix
|
#1 |
Member
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 14 |
Hi FOAMERS
I am trying to access to elements of the coefficient matrix of an equation using lduAddresing Foloowing the procedure in "OpenFOAM guide/Matrices in OpenFOAM" http://openfoamwiki.net/index.php/Matrices_in_OpenFOAM I use scalarField *lowerPtr_; scalarField *diagPtr_; scalarField *upperPtr_; for (register label face=0; face<l.size(); face++) { Diag[l[face]] -= Lower[face]; Diag[u[face]] -= Upper[face]; } But I get the following errors error: ‘l’ was not declared in this scope error: ‘Diag’ was not declared in this scope error: ‘Lower’ was not declared in this scope error: ‘u’ was not declared in this scope error: ‘Upper’ was not declared in this scope Do you have any idea what these errors are? PS: I have included these header files #include "fvCFD.H" #include "wallFvPatch.H" #include <fstream> #include <string> #include <stdio.h> #include <time.h> #include <iostream> |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How the cyclic boundary condition affect the coefficient matrix | codinging | OpenFOAM Programming & Development | 5 | October 20, 2015 07:26 |
OpenFOAM version 1.6 details | lakeat | OpenFOAM Running, Solving & CFD | 42 | August 26, 2009 21:47 |
Automotive test case | vinz | OpenFOAM Running, Solving & CFD | 98 | October 27, 2008 08:43 |
couldn't allocate fine level coefficient matrix | Sasha | FLUENT | 0 | December 1, 2005 15:31 |
couldn't allocate fine level coefficient matrix | Satish Perivilli | FLUENT | 1 | February 14, 2005 16:48 |