CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Overwrite Values each n-th time step

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2016, 11:59
Default Overwrite Values each n-th time step
  #1
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 12
Student1989 is on a distinguished road
Hey everyone,

Got a question:
Is it possible to overwrite a solution of a object each n-th time step?
More accurate, I have several objects in my calculation grid, and i want to "copy" the values of object 1 to object 2 and so on...

Thank you in advance,
Cheers
Student1989 is offline   Reply With Quote

Old   July 20, 2016, 05:09
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Can you explain a bit more so we can try to help?
Bruno Machado is offline   Reply With Quote

Old   July 20, 2016, 06:44
Default
  #3
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 12
Student1989 is on a distinguished road
Yes of course,

I want to model the warming of steel slabs as passing through a furnace. The steel slabs are therefore shifted every x seconds. So, the steel slab on position 1 moves to position 2 and so on.
So, when I am performing a transient simulation is it possible to copy all Information from one steel slap to another each x seconds. I know in transient simulations it is possible to write data with "Automatic Export", but is it possible with an udf, so i do not have to do it manually?

cheers
Student1989 is offline   Reply With Quote

Old   July 20, 2016, 07:48
Default
  #4
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Student1989 View Post
Yes of course,

I want to model the warming of steel slabs as passing through a furnace. The steel slabs are therefore shifted every x seconds. So, the steel slab on position 1 moves to position 2 and so on.
So, when I am performing a transient simulation is it possible to copy all Information from one steel slap to another each x seconds. I know in transient simulations it is possible to write data with "Automatic Export", but is it possible with an udf, so i do not have to do it manually?

cheers
You can use UDM to storage whatever the information you want. Use an DEFINE_EXECUTE_AT_END so at the end of each iteration (or time step if transient) it will storage the variable you want in a UDM. Later you can set the UDM value to the profile/variable you want.
Bruno Machado is offline   Reply With Quote

Old   July 20, 2016, 08:25
Default
  #5
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 12
Student1989 is on a distinguished road
Thank you very much.
Maybe other questions arise later

cheers
Student1989 is offline   Reply With Quote

Old   October 11, 2016, 05:48
Default
  #6
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 12
Student1989 is on a distinguished road
Hello,

another question arised. The method with the UDM seems great, but in my case i have more than 500 cells, so the memory will be exceeded. Is there another possibility to transfer the data and maybe modify during the transfer?

Thanks in advance,

Cheers
Student1989 is offline   Reply With Quote

Old   October 11, 2016, 06:35
Default
  #7
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
I use UDM with more than 40 million cells, so it is hard to believe that you run into problems with 500 cells...
pakk is offline   Reply With Quote

Old   October 11, 2016, 06:53
Default
  #8
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
I'd say the same. I work with over 40 UDM and 1.2mi cells and had no problem at all. I think either there is a misunderstanding from your part or you are doing something wrong that is causing the loop not to stop running and is overloading your memory.
Bruno Machado is offline   Reply With Quote

Old   October 11, 2016, 07:02
Default
  #9
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 12
Student1989 is on a distinguished road
Apparently I misunderstood something.
Thaks for your help

cheers
Student1989 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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 10:08
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 08:56


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