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

Defining a new cell variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2000, 10:42
Default Defining a new cell variable
  #1
Ulrich
Guest
 
Posts: n/a
Hi, I've two questions.

1.) Is it possible, to define a cell variable like C_XYZ(c,t) in the source mem.h or in another source. If it's possible, what's the correct define code?

2.) How can I imagine me a thread of a cell or a face. Is it the pointer of an edge between two nodes or a cell layer of a volume?

Thank's for help

Ulrich
  Reply With Quote

Old   May 25, 2000, 16:04
Default Re: Defining a new cell variable
  #2
Chris
Guest
 
Posts: n/a
> 1.) Is it possible, to define a cell variable like C_XYZ(c,t) in the source mem.h or in another source?

You can not redefine or modify the definitions of any structures used within fluent (since you can not re-compile the fluent source, you would end up with inconsistent struct sizes between your code and the fluent code).

However, you can use the user defined scalar fields via the C_UDSI(c,t,i) macro. The index variable i specifies which scalar (there is some built in maximum number of user defined scalar fields available, I think).

> 2.) How can I imagine me a thread of a cell or a face?

A thread is simply the C struct used to represent a zone, so in that sense a thread contains a list (array, actually) of homogeneous entities (ie, all faces or cells with the same BCs & properties applied).

  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
Cell Reynolds Number laliong Main CFD Forum 12 September 17, 2019 03:18
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
Dynamic Mesh.. Layering.. cell addition kedarj14 OpenFOAM Programming & Development 0 January 29, 2010 01:48
Defining and assigning a variable to a cell Robi FLUENT 0 July 13, 2005 18:27
Defining cell faces in BFC Olof Liungman Phoenics 2 July 28, 2003 04:23


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