CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > 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

Reply
 
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
  #1
New Member
 
Xuan Cai
Join Date: Mar 2011
Location: Karlsruhe, Germany
Posts: 9
Rep Power: 6
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.

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

Reply

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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Unsteady Boundary Profile with data file Arianna FLUENT 26 March 24, 2014 06:55
problems after decomposing for running alessio.nz OpenFOAM 5 April 20, 2011 08:44
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 19:39.