From 03e0ce5d4be7b7389824cf60f61038b763bd9118 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 5 Dec 2016 20:07:40 +0000 Subject: [PATCH] advectiveFvPatchField, waveTransmissiveFvPatchField: Updated docs Resolves bug-report http://bugs.openfoam.org/view.php?id=2373 --- .../derived/advective/advectiveFvPatchField.H | 5 +++-- .../waveTransmissive/waveTransmissiveFvPatchField.H | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H index e5caf9786..7a2f84166 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H @@ -29,7 +29,8 @@ Group Description This boundary condition provides an advective outflow condition, based on - solving DDt(psi, U) = 0 at the boundary. + solving DDt(W, field) = 0 at the boundary where \c W is the wave velocity + and \c field is the field to which this boundary condition is applied. The standard (Euler, backward, CrankNicolson, localEuler) time schemes are supported. Additionally an optional mechanism to relax the value at @@ -37,7 +38,7 @@ Description switched on by specifying the relaxation length-scale \c lInf and the far-field value \c fieldInf. - The flow/wave speed at the outlet is provided by the virtual function + The flow/wave speed \c (w) at the outlet is provided by the virtual function advectionSpeed() the default implementation of which requires the name of the flux field \c (phi) and optionally the density \c (rho) if the mass-flux rather than the volumetric-flux is given. diff --git a/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.H index 63865c889..07a878335 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.H @@ -29,18 +29,19 @@ Group Description This boundary condition provides a wave transmissive outflow condition, - based onsolving DDt(psi, U) = 0 at the boundary. + based on solving DDt(W, field) = 0 at the boundary \c W is the wave velocity + and \c field is the field to which this boundary condition is applied. The wave speed is calculated using: \f[ - x_p = \frac{\phi_p}{|Sf|} + \sqrt{\frac{\gamma}{\psi_p}} + w_p = \frac{\phi_p}{|Sf|} + \sqrt{\frac{\gamma}{\psi_p}} \f] where \vartable - x_p | patch values + w_p | patch wave speed \phi_p | patch face flux \psi_p | patch compressibility Sf | patch face area vector