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

Entries for June 2012

Register Blogs Community New Posts Updated Threads Search

In this blog, quick reference notes about OpenFOAM are posted in a form of a summary to address a specific topic per post.
Old

Gnuplot Vector Probes from the funtionObject

Posted June 9, 2012 at 15:27 by Hisham (Notes for OpenFOAM!)

When using the functionObject to probe a vector (e.g. velocity) at a location, the output is in the format:
Code:
# Time  vector
1.20   (2.14   8.512   1.005)
.
.
.
Unlike sampling or using probeLocations, until now AFAIK it is not possible to use U.component(0) to spit only the X-component. To resolve that using gnuplot, one can use:
Code:
plot 'probeFile' using "%lf (%lf %*lf %*lf)"
to plot the Ux component...
Hisham's Avatar
Senior Member
Posted in Uncategorized
Views 4012 Comments 3 Hisham is offline Edit Tags
Old

The directionMixed Boundary Condition

Posted June 7, 2012 at 10:53 by Hisham (Notes for OpenFOAM!)
Updated June 7, 2012 at 13:45 by Hisham

A mixed boundary condition is a combination of a fixedValue (Drichilet) and a fixedGradient (Neumann) boundaries determined by a fraction value. When fraction = 1, the BC is fixedValue and when it is set to zero the BC is fixedGradient. Values in between calculate a value in between (see code).

The directionMixed BC allows changing the fraction value for different directions. Assuming a plane-strain stress analysis that needs fixation in X-direction (Dx = 0) and free Y-direction...
Hisham's Avatar
Senior Member
Posted in Uncategorized
Views 1680 Comments 0 Hisham is offline Edit Tags

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