CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CD

User codding -Scalar source-dynamic contact angle

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2015, 06:06
Default User codding -Scalar source-dynamic contact angle
  #1
IRP
Member
 
iman
Join Date: Jun 2015
Posts: 35
Rep Power: 11
IRP is on a distinguished road
Dear all, I am dealing with a problem in Star-CD, about the impact of droplet on a surface.
Scalar (1) =Air
Scalar (2) =Water

Indeed, I am going to provide dynamic contact angle (direct: Thermophysical model and properties—Multifluid—Surface tension— User) and phase source as a user coding (direct: Thermophysical model and properties—Source Terms—Scalar— User coding). Before doing these two step I also defined the fluid initialization (user coding) and Momentum source (user coding).

For dynamic contact angle: defining these two equations is necessary
Contact line velocity = -1* (vector (velocity) *grad (volume fraction water))
Capillary number = (Contact line velocity*Dynamic viscosity) / surface tension force

And for Source Scalar:
1- Knowing the value of VOFwater (scalar (2)) at each time step (so, should be exported the data at first)

2- Then, comparing of these (VOFwater) at two time step


I would be appreciated if anyone could help me to that what kind of function as user coding (as like, defining the vector, Gradient, export, import, working example …) would be suitable in this condition.

Thank you very much in advance.
IRP 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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
dynamic contact angle udf returns no value to solver shiraz_man67 Fluent UDF and Scheme Programming 5 July 3, 2018 15:51
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 16:14
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 11:00.