CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

How to prescribe a hyperbolic tangent profile into a transition interface of a field

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 13, 2012, 04:44
Default How to prescribe a hyperbolic tangent profile into a transition interface of a field
New Member
Xuan Cai
Join Date: Mar 2011
Location: Karlsruhe, Germany
Posts: 9
Rep Power: 8
cfd_explorer is on a distinguished road
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.

Attached Images
File Type: jpg tochange.jpg (100.1 KB, 20 views)
cfd_explorer is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsteady Boundary Profile with data file Arianna FLUENT 33 September 27, 2017 08:54
problems after decomposing for running OpenFOAM 6 December 23, 2015 15:27
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Interface Matching and Field Function problems PLUH STAR-CCM+ 3 July 6, 2009 08:33
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51

All times are GMT -4. The time now is 12:27.