CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Using a grid generator (https://www.cfd-online.com/Forums/main/63839-using-grid-generator.html)

Benzaa April 21, 2009 12:04

Using a grid generator
 
Hi,

I hope you can help me with a small question about grid generators.

I am working a small CFD code in C++. It is a structured grid on two dimensions, nothing special about it.

My code works with objects, this means that I have defined an object that stores all the variables that I want to solve in the system, e.g. Temperature or concentration.

Then, I store all the objects in a vector and then I access them according to a row,column index.

What I need help to understand is, how does a grid generator knows how many variables you are going to be working with?

Does it create objects that store all the variables inside them, or does it create different arrays for the variables?

Meaning, does it creates an array for the cells and another for the variables (temperature, concentration, velocity)?


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