|
[Sponsors] |
April 20, 2009, 09:39 |
changing the boundary conditions values
|
#1 |
New Member
Gerard Mouokue
Join Date: Mar 2009
Location: Darmstadt, Hessen, Germany
Posts: 16
Rep Power: 17 |
Hi,
I have for example the following code. BoundaryField{ inlet { type fixedValue; value uniform 10; } .. .... } I want to change the value 10. can someone tell me which method I have to use? I looked in fixedValueFvPatchField.C but value can t be set there. best regards. |
|
April 27, 2009, 10:39 |
Hello!
|
#2 |
New Member
remi de reynal
Join Date: Apr 2009
Location: ottawa
Posts: 8
Rep Power: 17 |
Dear gerado,
I think you can change the specified value for each cell of your boundary just with: label boundaryID = mesh.boundaryMesh().findPatchID("boundaryName"); const fvPatch & boundaryPatchName=mesh.boundary()[boundaryID]; forAll (boundaryPatchName, faceI) {yourVariable.boundaryField()[boundaryID][faceI] = appropriate Value for this face ;} Goodbye! |
|
April 27, 2009, 10:58 |
|
#3 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Dear Gerado,
label boundaryID = mesh.boundaryMesh().findPatchID("boundaryName"); yourVariable.boundaryField()[boundaryID] == 20; That's it. Henrik |
|
April 30, 2009, 08:28 |
|
#4 |
New Member
Gerard Mouokue
Join Date: Mar 2009
Location: Darmstadt, Hessen, Germany
Posts: 16
Rep Power: 17 |
hi Henrik ,remi
thanks you for the help Gerado |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Defining "Neutral" boundary conditions? (force=0) | MW | FLUENT | 5 | October 5, 2009 04:55 |
UDS Boundary conditions | Max Perrotta | FLUENT | 0 | August 16, 2007 03:59 |
New topic on same subject - Flow around race car | Tudor Miron | CFX | 15 | April 2, 2004 06:18 |
Please help with flow around car modelling! | Tudor Miron | CFX | 17 | March 19, 2004 19:23 |
Outflow boundary conditions | Achilleas Tsompanos | Main CFD Forum | 6 | April 2, 2000 16:09 |