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

About user code

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2021, 20:50
Default About user code
  #1
New Member
 
Join Date: Dec 2020
Posts: 5
Rep Power: 3
stevebn is on a distinguished road
I want to write a user code to get the speed of the natural circulatory system cost under steady-state conditions, but the current user code has found that the call variable of star-ccm+ will not be used. What should I do?
user code:
void USERFUNCTION_EXPORT
main(CoordReal *result,int size,CoordReal* Ti,CoordReal* Tout,CoordReal* v,CoordReal* Iteration)
{





}
stevebn is offline   Reply With Quote

Old   January 21, 2021, 00:19
Default
  #2
Senior Member
 
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 18
ping is on a distinguished road
are you sure you need the complication of user code to do this - maybe explain exactly what you want to measure and we might find an inbuilt processing method
ping is offline   Reply With Quote

Old   January 21, 2021, 01:54
Default User Library
  #3
New Member
 
Join Date: Dec 2020
Posts: 5
Rep Power: 3
stevebn is on a distinguished road
hello,Because I need to simulate the internal flow characteristics of the rod bundle channel under natural circulation conditions, the built-in field function and custom field function of STAR-CCM+ cannot simulate one-dimensional loops, so user code is used to implement it.In addition, the user library I have generated in accordance with the user guide under VS2019, but the display cannot be opened. What is the reason?
Attached Images
File Type: jpg a8549490656a235ee166254987edb47.jpg (79.9 KB, 10 views)
stevebn is offline   Reply With Quote

Old   January 21, 2021, 02:57
Default
  #4
Senior Member
 
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 18
ping is on a distinguished road
the screen dump looks like your own ucode. does this mean that you have already very carefully followed the exact instructions in the user guide including copy and pasting the supplied c code and successfully used and run that ddl, since this is what i always do and suggest to others as the first step in user coding, even for a subsequent new project. once this is done then carefully modify the code to suit your needs, checking it still works along the way.

but you have still not provided enough information and diagrams of your project to convince me that you need ucode.
ping 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
Accessing table from user code nalamyogesh STAR-CCM+ 0 July 8, 2019 06:40
export field function value in user code lj0812 STAR-CCM+ 1 September 5, 2017 04:52
User fortran to input/output file in a parallel run doublestrong CFX 5 March 31, 2017 08:15
Check particle impaction with User Fortran Julian K. CFX 3 January 12, 2012 09:46
user friendly cfd code waqar Main CFD Forum 19 August 18, 2000 16:31


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