CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   changing the names and types of a boundaryField (https://www.cfd-online.com/Forums/openfoam-solving/62951-changing-names-types-boundaryfield.html)

gerado March 24, 2009 08:55

changing the names and types of a boundaryField
 
Hi,
I want to change the names and types of a boundaryField (for example the velocity U)

U.boundaryField()[patchI].patch().name() = "anewname"
U.boundaryField()[patchI].patch().type() = " anewtype"

after this my U field has to look like this

boundaryField
{
anewname
{
type anewtype;
}
}

wenn I run it I have errors.

createUfield.H:35: Fehler: Die Übergabe von »const Foam::word« als »this«-Argument von »void Foam::word::operator=(const Foam::word&)« streicht Qualifizierer
createUfield.H:36: Fehler: Die Übergabe von »const Foam::word« als »this«-Argument von »void Foam::word::operator=(const Foam::word&)« streicht Qualifizierer


in the class polypatch ,there is no operator for assignment. Do I have to implement it myself ?

thanks for your help.

gerard


All times are GMT -4. The time now is 23:40.