CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Phoenics (https://www.cfd-online.com/Forums/phoenics/)
-   -   vector problem (https://www.cfd-online.com/Forums/phoenics/65973-vector-problem.html)

 fastnfuriousamit July 2, 2009 06:27

vector problem

HELLO friends.......

Are there any predefined vector variables in phoenics or is there any way to define a vector variable???
I solved a current distribution problem using C1 as my variable, and it showed proper values, but i need the current flow direction also???
Is there any possible way to do so????
Or is velocity the only thing that can be plotted as vectors??????

 antarctic July 3, 2009 05:24

Vectors

Hi
I think PHOENICS as a default shows velocity vectors only. They may be coloured according to the variable in question. You could try using tecplot or some other plotter to plot PHOENICS generated vectors.

 fastnfuriousamit July 3, 2009 05:51

thanx arnie,
but could you please elaborate the sentence "They may be coloured according to the variable in question."..
Suppose i want to find out the current vectors from a potential distribution, what do i do????

 John_L August 13, 2009 12:18

The PHOENICS Viewer can use any 3 stored variables as the vector components. These are selected from the Vector Options tab (right click the vector toggle icon). The real question is how to generate the vector components from the scalar. This can be done using InForm to compute the gradients of C1, rather like:

save7begin
(stored of gcx is (c1-c1[-1])/dxg)
(stored of gcy is (c1-c1[,-1])/dyg)
(stored of gcz is (c1-c1[,,-1])/dzg)
save7end

After the Earth run, select gcx, gcy and gcz as the vector components. There will also be a new contour variable called 'Vector magnitude' which is the absolute magnitude of the new vector.

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