CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

changing the names and types of a boundaryField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2009, 09:55
Default changing the names and types of a boundaryField
  #1
New Member
 
Gerard Mouokue
Join Date: Mar 2009
Location: Darmstadt, Hessen, Germany
Posts: 16
Rep Power: 17
gerado is on a distinguished road
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:perator=(const Foam::word&)« streicht Qualifizierer
createUfield.H:36: Fehler: Die Übergabe von »const Foam::word« als »this«-Argument von »void Foam::word:perator=(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
gerado is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:24.