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

time-varying cone angle

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2022, 12:42
Default time-varying cone angle
  #1
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Hi,
I have a UDF which inherits spray properties. I have to implement a time-varying cone angle. How do I interpolate the values from the time? What is the table lookup function for interpolating time-varying data? I am converge v3.0.24.
Thanks,
Sampath
sampy is offline   Reply With Quote

Old   April 1, 2022, 14:08
Default
  #2
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Hello Sampath,

May I know why you're looking at a UDF option for this? In CONVERGE Studio, you can provide a time-varying profile for spray cone angle for each nozzle using the Use file option. During the simulations, CONVERGE will (linear) interpolate between the values provided.

Hope this helps.

Sincerely.
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   April 1, 2022, 14:54
Default
  #3
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Hi Kislaya,
I am modifying an existing in-house UDF to include the spray-angle. In this UDF, we have a variable that reads the injector and nozzle data structures for some operations. As part of this process, I have to read the time-varying cone angle from a file. So, I just need to pass the interpolated cone angle from the table.


It is my understanding that I can read this information using the following pseduo code:
var1 = CONVERGE_table_lookup(CONVERGE_<some_data_structur e>_table, simtime+start_time);


Can you suggest what are the arguments I need to pass to table_lookup?
Thanks,
sampath
sampy is offline   Reply With Quote

Old   April 1, 2022, 15:25
Default
  #4
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Hello Sampath,

The time-varying cone angle file that you provide, is it using the Use File option for Spray cone angle, or a user input file?

You can feed the profile using the Use File option during setup and obtain the cone angle at current time-step using the CONVERGE_nozzle_get_parameter_precision(nozzle, NOZZLE_CONE_ANGLE) API. Some UDF routines also pass the current cone angle as "passed_cone_angle". You can refer the calc_dynamic_spray_cone_angle.c and nozzle.c example UDFs.

If you're using a user input file, it might be better to create your own routines to find an interpolated value. With the API you mentioned, you'll have to store your data within an CONVERGE _table_t variable and pass it as an argument to the API.

There might be better ways to obtain what you're looking for once we get an idea on how these UDFs work. For assistance, please contact support@convergecfd.com. Please use your official email for all correspondence with Convergent Science. Please mention the issues you are facing, attach your case setup along with the UDFs and add the cfd-online thread, as reference.

Sincerely,
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   April 1, 2022, 15:57
Default
  #5
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Hi Kislaya,
Thank you for pointing me to the appropriate example files. I am using the use file option for passing the cone angle table. I will try using the examples, if it is still unresolved I will reach out with a support request.
Thanks,
Sampath
sampy 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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
Convergence problem of OF WUYing OpenFOAM Running, Solving & CFD 2 September 20, 2021 10:09
Slow calculation time on CFD server killian153 Hardware 4 July 27, 2021 07:28
laplacianFoam with source term Herwig OpenFOAM Running, Solving & CFD 17 November 19, 2019 13:47
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58


All times are GMT -4. The time now is 01:02.