|
[Sponsors] |
July 2, 2009, 06:27 |
vector problem
|
#1 |
New Member
amit kumar barik
Join Date: May 2009
Posts: 12
Rep Power: 16 |
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?????? |
|
July 3, 2009, 05:24 |
Vectors
|
#2 |
New Member
Arnie
Join Date: Jul 2009
Posts: 6
Rep Power: 16 |
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. |
|
July 3, 2009, 05:51 |
|
#3 |
New Member
amit kumar barik
Join Date: May 2009
Posts: 12
Rep Power: 16 |
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???? |
|
August 13, 2009, 12:18 |
|
#4 |
New Member
John Ludwig
Join Date: Aug 2009
Posts: 5
Rep Power: 16 |
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. |
|
|
|