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

BC implementation in rhoSonicFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2008, 08:27
Default Hello I am looking at the c
  #1
Member
 
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 91
Rep Power: 17
srinath is on a distinguished road
Hello

I am looking at the code of rhoSonicFoam, and i can't spot any place where the BC's are applied.
It seems to work quite magically.
I find this quite perplexing. Any help will be much appreciated as i have been staring at the code for a whole day.

Thanks
Srinath
srinath is offline   Reply With Quote

Old   July 10, 2008, 09:09
Default i believe the bcs are applied
  #2
Member
 
kshitij neroorkar
Join Date: Mar 2009
Location: Michigan, USA
Posts: 32
Rep Power: 17
kdneroorkar is on a distinguished road
i believe the bcs are applied when you call solve
kdneroorkar is offline   Reply With Quote

Old   July 12, 2008, 09:02
Default Srinath, The boundary condi
  #3
New Member
 
Jean-Luc Pelerin
Join Date: Mar 2009
Posts: 21
Rep Power: 17
jlpelerin is on a distinguished road
Srinath,

The boundary conditions are read when you create the fields (see file createFields.H). Each field holds the boundary condition that are specified in the corresponding file (0/U, 0/p, ...).
And as explained by kshitij, when you call solve on a given equation, the boundary conditions, associated to the field the equation refers to, will be taken into account.

I hope it helps.
If you want more details, just ask or start reading the code of the fields objects.

Jean-Luc
jlpelerin is offline   Reply With Quote

Reply


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
RhoTurbFoam sonicFoam rhoSonicFoam mwibmer OpenFOAM Bugs 2 September 1, 2008 04:28
RhoSonicFoam errors srinath OpenFOAM Running, Solving & CFD 0 June 3, 2008 07:06
RhoSonicFoam srinath OpenFOAM Running, Solving & CFD 0 May 30, 2008 01:21
RhoSOnicFoam shuo OpenFOAM Running, Solving & CFD 2 November 6, 2006 00:25
RhoSonicFoam shuo OpenFOAM Running, Solving & CFD 1 October 9, 2006 19:57


All times are GMT -4. The time now is 23:10.