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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2012, 05: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: 15
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, 32 views)
cfd_explorer is offline   Reply With Quote

Old   March 5, 2021, 18:21
Default
  #2
Member
 
Join Date: Jan 2017
Posts: 71
Rep Power: 9
sadsid is on a distinguished road
How you introduced Hyperbolic tangent stretching in blockMesh? I want to do this as well.
sadsid is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 05:49
Unsteady Boundary Profile with data file Arianna FLUENT 34 July 29, 2019 17:35
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Interface Matching and Field Function problems PLUH STAR-CCM+ 3 July 6, 2009 09: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 04:20.