- **OpenFOAM**
(*https://www.cfd-online.com/Forums/openfoam/*)

- - **How to prescribe a hyperbolic tangent profile into a transition interface of a field**
(*https://www.cfd-online.com/Forums/openfoam/105915-how-prescribe-hyperbolic-tangent-profile-into-transition-interface-field.html*)

How to prescribe a hyperbolic tangent profile into a transition interface of a field1 Attachment(s)
Hello Everyone,
I've added a scalar transport equation into icoFoam for a concentration field (denoted as C). So generally the varying distribution of the field C is governed by the added transport equation. See the attached image, the pure red region where C=+1 represents one phase and the pure blue where C=-1 means the other. But for transition layer where the concentration changes from -1 to +1 , I want to prescribe a hyperbolic tangent profile C = tanh(x/a) where x indicates the local coordinate normal to the transition layer/interface, a is a parameter. So could anyone give me some suggestions or hints on how to prescribe the profile for the transition layer? Thank you very much in advance. Regards, Xuan |

All times are GMT -4. The time now is 05:30. |