|
[Sponsors] |
How to access gradient near the boundary for Navier slip bc? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 2, 2012, 12:11 |
How to access gradient near the boundary for Navier slip bc?
|
#1 |
New Member
Marc-Florian Uth
Join Date: Jan 2010
Posts: 10
Rep Power: 16 |
Hi!
I am trying to implement a boundary condition based on the Navier slip model, where the velocity at the wall is a function of the velocity gradient at the wall: U = ls * du/dn For this, I have to access du/dn (the velocity gradient normal to the wall) in the field. Is there a function for this similar to this->patchInternalField()? As a starting point I use the partialSlip bc from OpenFoam. Code:
template<class Type> void Foam::partialSlipFvPatchField<Type>::evaluate ( const Pstream::commsTypes ) { if (!this->updated()) { this->updateCoeffs(); } tmp<vectorField> nHat = this->patch().nf(); Field<Type>::operator= ( (1.0 - valueFraction_) *transform(I - sqr(nHat), this->patchInternalField()) ); transformFvPatchField<Type>::evaluate(); } I appreciate any help! Thank you! marc |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
boundary conditions for simpleFoam calculation | foam_noob | OpenFOAM Running, Solving & CFD | 8 | July 1, 2015 08:07 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 03:32 |
inlet velocity boundary condition | murali | CFX | 5 | August 3, 2012 08:56 |
slip velocity on boundary (V.P.M) | Lee, Juhee | Main CFD Forum | 3 | October 22, 1998 15:30 |