CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF, Source term in Momentum equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2018, 07:02
Default UDF, Source term in Momentum equation
  #1
New Member
 
SAYANTAN BISWAS
Join Date: Mar 2018
Location: Mumbai
Posts: 17
Rep Power: 8
Sayantan Biswas is on a distinguished road
Hello,

I'm working on Electro-deposition process of copper, from anode face copper is liberating and on Cathode Face copper is being deposited thus the fluid that is within the electrode gap there will be natural convection phenomena due to concentration difference and buoyancy effect.

1) How do I write UDF to introduce source term as S=-rho*g*B*[C-Cref] where
B is co-efficient of expansivity, C is the local concentration of copper i.e. variable and Cref some avrg reference concentration over Cathode.
2) I want density should be function of local copper concentration follows a certain linear co-relation e.g. rho=A+B*[C];

Please help how to write these two UDFs
Sayantan Biswas is offline   Reply With Quote

Old   June 1, 2018, 04:23
Default
  #2
New Member
 
Ngo Bao Chung
Join Date: Sep 2012
Posts: 14
Rep Power: 14
chienfm is on a distinguished road
Hello SAYANTAN BISWAS,

First, take a look at UDF document in DEFINE_SOURCE and DEFINE_PROPERTY. There are few examples there which close to your case.

regards,
Chung.
chienfm is offline   Reply With Quote

Reply


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
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 16:40.