boundary condition scalarField in parallel
1 Attachment(s)
I'm trins to compile my boundary condition using a scalarField It work but in parallel I get this warning:
Code:
--> FOAM Warning : To do this patch I use fixed shear stress and nut rough wall as example. Thanks for the help ! |
The k file in the 0 folder has the ground boundary define:
Code:
ground Code:
z0Field List<scalar> |
I found an error that solve part of the problem, but now I try to use rmap and automap to make it possible to use in parallel.
My error was that in the write function I did not use the right function too write z0_ so I change it for: Code:
z0_.writeEntry("z0", os); I try to add them as it is add in turbulentHeatFluxTemperatureFvPatchScalarField but i get this error: Code:
Wall/epsilonWallFunctions/ABLz0epsilonWallFunction/ABLz0epsilonWallFunction.C: In member function ‘virtual void Foam::incompressible::RASModels::ABLz0epsilonWallFunction::autoMap(const Foam::fvPatchFieldMapper&)’: |
autoMap tryed to modify my const scalarField z0_ !!
apparently the too errors
Code:
Wall/epsilonWallFunctions/ABLz0epsilonWallFunction/ABLz0epsilonWallFunction.C:294: error: passing ‘const Foam::scalarField’ as ‘this’ argument of ‘void Foam::Field<Type>::autoMap(const Foam::FieldMapper&) [with Type = float]’ discards qualifiers Code:
Wall/epsilonWallFunctions/ABLz0epsilonWallFunction/ABLz0epsilonWallFunction.C:313: error: passing ‘const Foam::scalarField’ as ‘this’ argument of ‘void Foam::Field<Type>::rmap(const Foam::UList<T>&, const Foam::unallocLabelList&) [with Type = float]’ discards qualifiers const scalarField z0_; I change it for a: scalarField z0_; And those too error disappear. I guess it means i tried to modify the constant class z0_ with autoMap. So autoMap modify the member of the class !!! One day I'll get use to c++ error message. But now I'm still learning c++ :D !! but still this error remains Code:
Wall/epsilonWallFunctions/ABLz0epsilonWallFunction/ABLz0epsilonWallFunction.C: In member function ‘virtual void Foam::incompressible::RASModels::ABLz0epsilonWallFunction::rmap(const Foam::fvPatchScalarField&, const Foam::labelList&)’: Regards |
Found the reason for the error :
Code:
Wall/epsilonWallFunctions/ABLz0epsilonWallFunction/ABLz0epsilonWallFunction.C: In member function ‘virtual void Foam::incompressible::RASModels::ABLz0epsilonWallFunction::rmap(const Foam::fvPatchScalarField&, const Foam::labelList&)’: I use Code:
fvPatchField<scalar>::rmap(ptf, addr); Code:
fvPatchField::rmap(ptf, addr); works fine now tanks for reading |
All times are GMT -4. The time now is 09:02. |