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

import transient profile

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ghorrocks
  • 1 Post By Lance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2018, 13:13
Smile import transient profile
  #1
New Member
 
Join Date: Feb 2012
Location: Nantes
Posts: 14
Rep Power: 14
hydraulic is on a distinguished road
Hi All,
I need some help with the CFX functions.
I would like to run a transient simulation by reading a csv file every time step.
Until now, I was computing only steady state by reading .csv files which look like:

[Data]
x [ m ],y [ m ],z [ m ],Velocity [ m s^-1 ], Temperature [ K ]...
0, 1, 15, 5, 284.211
1, 2, 15, 1, 284.55
...

My User functions look like:
LIBRARY: CEL:
&replace FUNCTION: Top
Argument Units = [m], [m], [m]
File Name = myPath/Top.csv
Option = Profile Data
Profile Function = On
Render Type = Points
Spatial Fields = x, y, z
DATA FIELD: Temperature Field Name = Temperature
Result Units = [K]
END
DATA FIELD: Velocity
Field Name = Velocity
Result Units = [m s^-1]
END
END

Now i would like to switch to transient simulations and read a file for every time step (delta t=1s). Does someone has a Tipp how to do that?
My first idea was to change in the csv files my x,y,z with x,y,t as my boundaries can be defined with only 2 coordinates. The input file become:

x [ m ],y [ m ],t[ s ],Velocity [ m s^-1 ], Temperature [ K ]...
0, 1, 0, 5, 284.211
1, 2, 0,1, 284.55...
0, 1, 1, 5, 284.211
1, 2, 1, 1, 284.55...

Do you have an idea how to read the new files by doing an interpolation with respect to time?

Thanks in advance!
hydraulic is offline   Reply With Quote

Old   March 6, 2018, 16:32
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,781
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
First of all - if the function is known in advance it can be entered as a CEL expression. But I assume the function is complex enough that this is not practical.

I think you are going to have to do write a user fortran function to do this. Have a look at the example user fortran examples in the CFX documentation on how to do this.
hydraulic likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   March 7, 2018, 02:26
Default
  #3
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Quote:
Originally Posted by hydraulic View Post
My first idea was to change in the csv files my x,y,z with x,y,t as my boundaries can be defined with only 2 coordinates. The input file become:
x [ m ],y [ m ],t[ s ],Velocity [ m s^-1 ], Temperature [ K ]...
0, 1, 0, 5, 284.211
1, 2, 0,1, 284.55...
0, 1, 1, 5, 284.211
1, 2, 1, 1, 284.55...
Do you have an idea how to read the new files by doing an interpolation with respect to time?
This will work, Iam pretty sure I have done it previously. CFX will interpolate in time if you call your function with the arguments (x,y,t).
hydraulic likes this.
Lance 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
Creat or Import 2D airfoil profile. Jackie FLUENT 14 May 11, 2013 06:16
How to specify a transient profile with spacial variant without UDF? joy2000 Fluent UDF and Scheme Programming 0 February 6, 2013 08:51
Transient Profile with case modification nenazarian FLUENT 1 September 28, 2012 17:55
Import transient cfx-results for static structural analysis in Ansys WB 13 Colt Seavers ANSYS 1 August 11, 2011 06:01
Writing profile data at transient heat transfer analysis Ama FLUENT 0 July 5, 2009 07:35


All times are GMT -4. The time now is 22:13.