42 const scalar coeffVal,
47 source_(mSize, sourceVal)
105 <<
"Attempted assignment to self"
112 <<
"Different size matrices"
116 if (source_.size() != m.source_.size())
119 <<
"Different size source vectors"
133 const simpleMatrix<Type>& m1,
134 const simpleMatrix<Type>& m2
137 return simpleMatrix<Type>
141 m1.source_ + m2.source_
149 const simpleMatrix<Type>& m1,
150 const simpleMatrix<Type>& m2
153 return simpleMatrix<Type>
157 m1.source_ - m2.source_
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_;
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label m() const
Return the number of rows.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void operator=(const zero)
Assignment of all elements to zero.
A simple square matrix solver with scalar coefficients.
void operator=(const simpleMatrix< Type > &)
Field< Type > solve() const
Solve the matrix using Gaussian elimination with pivoting.
simpleMatrix(const label)
Construct given size.
Field< Type > LUsolve() const
Solve the matrix using LU decomposition with pivoting.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
SquareMatrix< scalar > scalarSquareMatrix
void LUsolve(scalarSquareMatrix &matrix, List< Type > &source)
Solve the matrix using LU decomposition with pivoting.
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.