Hgholami |
March 20, 2019 10:53 |
how develop nu() in icoFluid solver of fsiFoam
Dear foamers
I want to add nu() as non-Newtonian fluid in icoFluid.
the problem is in here "part of icoFluid"
Quote:
tmp<scalarField> icoNonFluid::faceZoneMuEff
(
const label zoneID,
const label patchID
) const
{
tmp<scalarField> tMuEff
(
new scalarField
(
mesh().faceZones()[zoneID].size(),
rho_.value()*nu_.value() //Here
)
);
return tMuEff;
void icoNonFluid::evolve()
|
I want to change "nu_.value" with
Quote:
fluid_.nu().boundaryField()[patchID]
|
I add non-Newtonian fluid as fluid_(U_, phi_), then to call that I used fluid_nu.
the compiler give this error.
Quote:
fluidSolvers/icoNonFluid/icoNonFluid.C: In member function ‘virtual Foam::tmp<Foam::Field<double> > Foam::fluidSolvers::icoNonFluid::faceZoneMuEff(Foa m::label, Foam::label) const’:
fluidSolvers/icoNonFluid/icoNonFluid.C:285:9: error: no matching function for call to ‘Foam::Field<double>::Field(Foam::label, Foam::tmp<Foam::Field<double> >)’
)
^
|
Do you know what is the problem?
Thanks
|