Go to the documentation of this file.
42 const scalar coeffVal,
47 source_(mSize, sourceVal)
55 const Field<Type>& source
105 <<
"Attempted assignment to self"
112 <<
"Different size matrices"
116 if (source_.size() != m.
source_.size())
119 <<
"Different size source vectors"
149 const simpleMatrix<Type>& m1,
150 const simpleMatrix<Type>& m2
153 return simpleMatrix<Type>
166 const simpleMatrix<Type>& m
169 return simpleMatrix<Type>(
s*m.matrix_,
s*m.source_);
179 const simpleMatrix<Type>& m
182 os << static_cast<const scalarSquareMatrix&>(m) <<
nl << m.source_;
void operator=(const simpleMatrix< Type > &)
void LUsolve(scalarSquareMatrix &matrix, List< Type > &source)
Solve the matrix using LU decomposition with pivoting.
A simple square matrix solver with scalar coefficients.
Field< Type > LUsolve() const
Solve the matrix using LU decomposition with pivoting.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void operator=(const Matrix< Form, Type > &)
Assignment operator. Takes linear time.
simpleMatrix(const label)
Construct given size.
SquareMatrix< scalar > scalarSquareMatrix
errorManip< error > abort(error &err)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
SolverPerformance< Type > solve(fvMatrix< Type > &, const dictionary &)
Solve returning the solution statistics given convergence tolerance.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Field< Type > solve() const
Solve the matrix using Gaussian elimination with pivoting.