Skip to content
Snippets Groups Projects
Commit e8a46f2d authored by andy's avatar andy
Browse files

BUG: Corrected porosity force initialisation

parent 9dec55b5
Branches
Tags
No related merge requests found
......@@ -130,8 +130,8 @@ void Foam::porosityModels::DarcyForchheimer::calcForce
vectorField& force
) const
{
scalarField Udiag(U.size());
vectorField Usource(U.size());
scalarField Udiag(U.size(), 0.0);
vectorField Usource(U.size(), vector::zero);
const scalarField& V = mesh_.V();
apply(Udiag, Usource, V, rho, mu, U);
......
......@@ -183,8 +183,8 @@ void Foam::porosityModels::fixedCoeff::calcForce
vectorField& force
) const
{
scalarField Udiag(U.size());
vectorField Usource(U.size());
scalarField Udiag(U.size(), 0.0);
vectorField Usource(U.size(), vector::zero);
const scalarField& V = mesh_.V();
scalar rhoRef = readScalar(coeffs_.lookup("rhoRef"));
......
......@@ -74,7 +74,7 @@ void Foam::porosityModels::powerLaw::calcForce
vectorField& force
) const
{
scalarField Udiag(U.size());
scalarField Udiag(U.size(), 0.0);
const scalarField& V = mesh_.V();
apply(Udiag, V, rho, U);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment