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

define profile with multiple threads

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2012, 10:23
Default define profile with multiple threads
  #1
ijk
Member
 
Join Date: Apr 2010
Posts: 33
Rep Power: 16
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, 01:23
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15
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.
msaeedsadeghi is offline   Reply With Quote

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

Old   March 1, 2013, 00:56
Default 2D airfoil O Grid- negative volume
  #4
Member
 
samrat himvanth nanduri
Join Date: May 2012
Posts: 30
Rep Power: 14
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


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
UDF: trying to implement a Kinetic Equation source term er.mkumar Fluent UDF and Scheme Programming 35 March 22, 2019 11:20
Define Certain Cell Threads in Udfs payam_IUST Fluent UDF and Scheme Programming 1 October 2, 2009 16:27
ACCESS VIOLATION MHDWill FLUENT 1 September 23, 2007 03:51
Define an equation for the inlet velocity profile Alshroof CFX 3 January 9, 2007 20:34
multiple threads Teresa FLUENT 2 June 23, 2005 12:46


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