|
[Sponsors] |
May 22, 2000, 11:42 |
Defining a new cell variable
|
#1 |
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 |
|
May 25, 2000, 17:04 |
Re: Defining a new cell variable
|
#2 |
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). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cell Reynolds Number | laliong | Main CFD Forum | 12 | September 17, 2019 04:18 |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 10:14 |
Dynamic Mesh.. Layering.. cell addition | kedarj14 | OpenFOAM Programming & Development | 0 | January 29, 2010 02:48 |
Defining and assigning a variable to a cell | Robi | FLUENT | 0 | July 13, 2005 19:27 |
Defining cell faces in BFC | Olof Liungman | Phoenics | 2 | July 28, 2003 05:23 |