CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

changePatchType

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 30, 2010, 10:31
Default changePatchType
  #1
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 8
nikwin is on a distinguished road
Hello,

I would like to change patch type and found the member function changePatchType (const word &patchName, const word &type) under the boundaryMesh class.

How do I construct a boundaryMesh class to access its member function?

The following has been tried without success
mesh.boundaryMesh().changePatchType(curPatch.name( ),"zeroGradient");

error: ‘const class FoamolyBoundaryMesh’ has no member named ‘changePatchType’

Thanks/
NW
nikwin is offline   Reply With Quote

Old   March 30, 2010, 11:33
Default
  #2
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 8
nikwin is on a distinguished road
Sorry, the previous post is completely wrong!

What I would like to do is to change boundary condition for a variable. The type can be obtained as,

U.boundaryField()[patchID].type();

But how can I change the boundaryField type for a specific variable, except manually in the data files?

Thanks again!
nikwin is offline   Reply With Quote

Old   March 30, 2010, 13:47
Default
  #3
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 53
Rep Power: 7
piprus is on a distinguished road
Have you tried groovyBC??
piprus is offline   Reply With Quote

Old   April 1, 2010, 02:06
Default
  #4
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 8
nikwin is on a distinguished road
Thanks, I'll try it out!
/NW
nikwin is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:14.