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

changing the boundary conditions values

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 20, 2009, 09:39
Default changing the boundary conditions values
  #1
New Member
 
Gerard Mouokue
Join Date: Mar 2009
Location: Darmstadt, Hessen, Germany
Posts: 16
Rep Power: 8
gerado is on a distinguished road
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.
gerado is offline   Reply With Quote

Old   April 27, 2009, 10:39
Default Hello!
  #2
New Member
 
remi de reynal
Join Date: Apr 2009
Location: ottawa
Posts: 8
Rep Power: 8
remi is on a distinguished road
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!
remi is offline   Reply With Quote

Old   April 27, 2009, 10:58
Default
  #3
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 275
Rep Power: 9
henrik is on a distinguished road
Dear Gerado,

label boundaryID = mesh.boundaryMesh().findPatchID("boundaryName");
yourVariable.boundaryField()[boundaryID] == 20;

That's it.

Henrik
henrik is offline   Reply With Quote

Old   April 30, 2009, 08:28
Default
  #4
New Member
 
Gerard Mouokue
Join Date: Mar 2009
Location: Darmstadt, Hessen, Germany
Posts: 16
Rep Power: 8
gerado is on a distinguished road
hi Henrik ,remi
thanks you for the help

Gerado
gerado 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


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 20:23
Outflow boundary conditions Achilleas Tsompanos Main CFD Forum 6 April 2, 2000 16:09


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