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

define profile with multiple threads

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 11, 2012, 09:23
Default define profile with multiple threads
  #1
ijk
Member
 
Join Date: Apr 2010
Posts: 33
Rep Power: 6
ijk is on a distinguished road
Hi all,

I have a domain with a couple of cell threads. I would like to firstly work out the average temperature in one of the threads by looping over the cells.

Then I would like to use that temperature to set the temperature at an inlet face in my domain.

I tried to do both steps in one define_profile. Define_profile is passed a thread from the solver. If I use the profile on my inlet face then the solver passes the inlet face thread. I tried to bring in the cell thread using
Lookup_Thread but I'm having problems.

Is it possible to do both steps in the one define_profile macro?
ijk is offline   Reply With Quote

Old   December 16, 2012, 00:23
Default
  #2
Senior Member
 
Saeed Sadeghi
Join Date: Oct 2012
Location: Denmark
Posts: 227
Rep Power: 4
msaeedsadeghi is on a distinguished road
You should define two threads into that DEFINE_PROFILE, store the thread information into a variable, then call it into the equation of the Profile thread. I have done that before.
__________________
Regards,
Saeed Sadeghi
Ansys Fluent CFD Consultant
msaeedsadeghi is offline   Reply With Quote

Old   December 17, 2012, 03:43
Default
  #3
ijk
Member
 
Join Date: Apr 2010
Posts: 33
Rep Power: 6
ijk is on a distinguished road
Thanks Saeed
ijk is offline   Reply With Quote

Old   February 28, 2013, 23:56
Default 2D airfoil O Grid- negative volume
  #4
New Member
 
samrat himvanth nanduri
Join Date: May 2012
Posts: 23
Rep Power: 4
samcfd is on a distinguished road
Hi,

I'm carrying out a 2D pitching airfoil simulation using dynamic meshing with a "O" Grid. The dynamic conditions i have given were
1) airfoil - rigid body with UDF with pitching over X=0.25
2)interior - deforming with the min and max length scale from zone scale info
3) fluid -deforming with the min and max length scale from zone scale info.

The spring constant i gave was 0.001 and
convergence tolerance 0.0001
No of iterations 150.

The time step tat i used is 0.001.

After running the iterations and after about 500 time steps i'm getting the following error

negative volume detected
dynamic mesh update failed.
i have worked around with the spring constant and also with the time step nothing worked.
could someone help me out rectify this issue..
thanks in advance,
sam
samcfd is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP in UDF er.mkumar Fluent UDF and Scheme Programming 23 May 23, 2013 12:55
Define Certain Cell Threads in Udfs payam_IUST Fluent UDF and Scheme Programming 1 October 2, 2009 15:27
ACCESS VIOLATION MHDWill FLUENT 1 September 23, 2007 02:51
Define an equation for the inlet velocity profile Alshroof CFX 3 January 9, 2007 19:34
multiple threads Teresa FLUENT 2 June 23, 2005 11:46


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