|
[Sponsors] |
March 30, 2010, 10:31 |
changePatchType
|
#1 |
Member
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17 |
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 |
|
March 30, 2010, 11:33 |
|
#2 |
Member
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17 |
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! |
|
April 1, 2010, 02:06 |
|
#4 |
Member
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17 |
Thanks, I'll try it out!
/NW |
|
|
|