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

changing the boundary conditions values

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2009, 10:39
Default changing the boundary conditions values
  #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 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, 11:39
Default Hello!
  #2
New Member
 
remi de reynal
Join Date: Apr 2009
Location: ottawa
Posts: 8
Rep Power: 16
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, 11:58
Default
  #3
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
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, 09:28
Default
  #4
New Member
 
Gerard Mouokue
Join Date: Mar 2009
Location: Darmstadt, Hessen, Germany
Posts: 16
Rep Power: 17
gerado is on a distinguished road
hi Henrik ,remi
thanks you for the help

Gerado
gerado is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 05:55
UDS Boundary conditions Max Perrotta FLUENT 0 August 16, 2007 04:59
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 07: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 17:09


All times are GMT -4. The time now is 04:30.