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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2016, 10:59
Default Overwrite Values each n-th time step
  #1
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 8
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, 04:09
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 10
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, 05:44
Default
  #3
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 8
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, 06:48
Default
  #4
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 10
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, 07:25
Default
  #5
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 8
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, 04:48
Default
  #6
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 8
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, 05:35
Default
  #7
Senior Member
 
Join Date: Nov 2013
Posts: 1,926
Rep Power: 23
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, 05:53
Default
  #8
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 10
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, 06:02
Default
  #9
New Member
 
Martin
Join Date: Dec 2014
Location: Graz/ Austria
Posts: 8
Rep Power: 8
Student1989 is on a distinguished road
Apparently I misunderstood something.
Thaks for your help

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


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