|
[Sponsors] |
January 11, 2021, 21:50 |
About user code
|
#1 |
New Member
Join Date: Dec 2020
Posts: 9
Rep Power: 5 |
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) { } |
|
January 21, 2021, 01:19 |
|
#2 |
Senior Member
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20 |
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
|
|
January 21, 2021, 02:54 |
User Library
|
#3 |
New Member
Join Date: Dec 2020
Posts: 9
Rep Power: 5 |
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?
|
|
January 21, 2021, 03:57 |
|
#4 |
Senior Member
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20 |
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Accessing table from user code | nalamyogesh | STAR-CCM+ | 0 | July 8, 2019 07:40 |
export field function value in user code | lj0812 | STAR-CCM+ | 1 | September 5, 2017 05:52 |
User fortran to input/output file in a parallel run | doublestrong | CFX | 5 | March 31, 2017 09:15 |
Check particle impaction with User Fortran | Julian K. | CFX | 3 | January 12, 2012 10:46 |
user friendly cfd code | waqar | Main CFD Forum | 19 | August 18, 2000 17:31 |