CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Adaptation using UDF's

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 12, 1999, 14:59
Default Adaptation using UDF's
  #1
Jackson
Guest
 
Posts: n/a
Hi,

I am trying to use Fluent to adapt the mesh according to an 'error sensor' that I have defined. In order to compute the value of this error sensor for an individual cell, I need to perform integrations of the flow variables around the faces of each cell, and integrations throughout the volumes of each cell.

I cannot do this using the 'Custom Field Functions' in Fluent, as I need information on the face areas etc (for each cell), and these are not available from the drop lists of 'Field Functions'.

As such, I have looked at creating a 'User Defined Function' (UDF) that will enable me to compute the error function at each cell in the fluid domain. However, I do not think that I can do this either, as there is no obvious 'allowed function' that enables me to assign local values to a new variable.

I would appreciate it if anyone could shed any light on my problem, or let me know if they have had similar difficulties.

Many thanks.

Jackson

  Reply With Quote

Old   December 17, 1999, 00:43
Default Re: Adaptation using UDF's
  #2
Greg Perkins
Guest
 
Posts: n/a
What you might try is to store your error function in a user defined scalar (and perhaps turn off solution of the transport equation or force it to your desired value). In this way you can have your error function stored for each control volume in the domain.

To adapt the grid based on this function use solution adaption on the scalar values and/or gradients. You can also use the scalar to visualise the error function in the domain using contour plots.

I have done this using material permeability.

Regards

Greg Perkins
  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
Axisymmetric 2D mesh adaptation - ERROR Pepe CFX 3 May 30, 2011 08:28
problem using property udfs in parallel mode EllenW FLUENT 0 June 23, 2009 17:18
Unsteady and Flux UDFs for UDSs tom FLUENT 0 February 13, 2009 11:27
mesh adaptation for hexa mesh Pete CFX 4 April 6, 2005 18:43
Experimental Repository for UDFs, Journal Files and Scheme Scripts Jonas Larsson FLUENT 0 March 5, 2000 16:36


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