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

Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2007, 14:15
Default a) all patches are 'polyPatch'
  #21
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
a) all patches are 'polyPatch' (base type). So any fvPatchField type that only needs a polyPatch will run happily (unless an explicit check has been coded)

b)any fvPatchField that needs extra information will (or should) check the patch type.

(for me symmetry on wall patch gives:
FOAM FATAL ERROR patch 0 not symmetry type. Patch type = wall

cyclic ,, gives:
FOAM FATAL ERROR : Attempt to cast type wall to type lduInterface

empty ,, gives:
FOAM FATAL IO ERROR : patch 0 not empty type. Patch type = wall
)


The behaviour of blockMesh comes from it trying to interface with FoamX and preserve the 'physicalType' FoamX sets. The coupling is not optimal as you've noticed.
mattijs is offline   Reply With Quote

Old   March 27, 2007, 04:09
Default I get the same messages in cas
  #22
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I get the same messages in case b) but in case a) I only get a message in case of symmetryPlane.

Actually, I ran a computation where I changed the b.c. in blockMeshDict to empty and forgot to change it in the field file and I got no warning. Later I wanted to check what b.c. I applied so, I checked the filed file which was (fixed value) inconsistent with the b.c specified in blockMeshDict. That is why I thought that if it is easy to implement such checks, in this way one can't get a wrong impression about what b.c. he actually applied, whether he checks the field file or blockMeshDict. Offcourse, one can always check the result.

Thanks for the clarification regarding connection to FoamX. Thanks!

Best regards,
Maka
maka is offline   Reply With Quote

Old   March 28, 2007, 02:39
Default hi, all how to create a new b
  #23
qiu
New Member
 
qiuhaitang
Join Date: Mar 2009
Posts: 3
Rep Power: 17
qiu is on a distinguished road
hi, all
how to create a new boundary condition changes with both time and coordinates,the boundary is still ,only the inlet velocity changes.I tried to modify from the oscillatingFixedValue,but as
I'm a freshman to C++,I failed all this week.Could someone be so kind to help me ?Thanks.

qiu
qiu is offline   Reply With Quote

Old   July 10, 2010, 04:36
Default Inlet fixed value boundary changes automaically
  #24
New Member
 
johny
Join Date: Jul 2010
Posts: 28
Rep Power: 15
johny is on a distinguished road
Hi OF'ers,

I'm simulating a nozzle and need to try with fixedvalue bc for my inlet. Pressure for the inlet is given zerogradient. And the bc's are switched for the outlet.
If I give an fixed value bc for the inlet. let's say 10...somehow when it moves on to the next time step it automatically changes to 1. I'm working with rhoSimpleFoam.
Do anyone have an idea why it happens?
Looking forward to your reply,

Thanks
johny is offline   Reply With Quote

Old   August 5, 2010, 10:19
Default freestream/freestreamPressure
  #25
New Member
 
Join Date: Jan 2010
Posts: 12
Rep Power: 16
Luise is on a distinguished road
Hello,

i don't understand the behaviour of freestream/freestreamPressure BCs.
Here is what i can figure out by reading the sources:

- freestream is inherited from inletOutletFvPatchField<Type>. There is no updateCoeffs(), so it doesnt calculate anything. However the inletOutlet-Class calculates phip, and so evaluates the blendingfactor for zeroGradient and fixedValue.

- freestreamPressure is inherited from zeroGradientFvPatchScalarField. There is a updateCoeffs() function declared and defined, which calculates phip by the flux normal to the patch.

As far as i understand, by using freestreamPressure for pressure and freestream for velocity, the pressure is set to zeroGradient everywhere and the velocity is kept as the inletOutlet-BC prescribes.

But then, what are the reasons for implementing those boundaries? And why is phip evaluated in the BC for pressure?

i hope somebody can help me on that.

Luise
Luise 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
Boundary condition for UDS Tomik FLUENT 0 December 5, 2006 17:37
Boundary condition of the third kind or Danckwertz boundary condition plage OpenFOAM Running, Solving & CFD 4 October 3, 2006 12:21
Slip Boundary Condition for Moving Boundary Shukla Main CFD Forum 3 November 11, 2005 15:02
UDF boundary condition Jeff FLUENT 2 November 20, 2003 17:15
Boundary Condition in LES Zhang Tsiang Main CFD Forum 3 February 5, 2002 20:15


All times are GMT -4. The time now is 00:31.