CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   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)

cfd_explorer August 13, 2012 04:44

How to prescribe a hyperbolic tangent profile into a transition interface of a field
 
1 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

sadsid March 5, 2021 17:21

How you introduced Hyperbolic tangent stretching in blockMesh? I want to do this as well.


All times are GMT -4. The time now is 13:10.