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

Access to the cells values on the boundary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2017, 10:21
Post Access to the cells values on the boundary
  #1
New Member
 
buidu
Join Date: Dec 2014
Posts: 27
Rep Power: 12
buidu is on a distinguished road
Dear all,

I plan to make a user code for heat source.

The heat generation rate is relevant to the surface mass flux.

Does anyone know how should I make the user coding to access the cell value for mass flux.

I asked the star ccm support. However, they normally do not support for user coding...

Thank you very much for your kind help.

regards,
Buidu
buidu is offline   Reply With Quote

Old   February 1, 2019, 12:42
Default
  #2
Member
 
Yogesh Nalam
Join Date: Sep 2012
Location: München, Germany
Posts: 54
Rep Power: 13
nalamyogesh is on a distinguished road
Hello,

It could look something like this :

void USERFUNCTION_EXPORT massflux(CoordReal *result, int size, CoordReal *MassFlux)
{
int i;
for (i =0 ; i< size ; ++i)
{
result[i] = ....
...
...
...
}

#include "uclib.h"


void massflux(CoordReal*, int, CoordReal*);


void USERFUNCTION_EXPORT uclib()
{

ucfunc(massflux, "ScalarFieldFunction", "MF");
ucarg(massflux, "Face", "$MassFlux", sizeof(CoordReal));

}
nalamyogesh is offline   Reply With Quote

Reply

Tags
field fucntion, user code


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
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Numerical errors in nested domain with pre-calculated boundary values Arnoldinho OpenFOAM Running, Solving & CFD 3 April 4, 2012 10:31
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


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