|
[Sponsors] |
October 27, 2011, 11:22 |
A problem for equation
|
#1 |
Member
bojiezhang
Join Date: Jan 2010
Posts: 64
Rep Power: 16 |
HI every former:
I have a problem about equation. Now I have a equation like this: fvVectorMatrix UEqn ( fvm::ddt(rho, U) + fvm::div(rhoPhi, U) - (add) ); the function for "add" in the () is like this: for X dirction: add(x)=x ; fro Y dirction: add(y)=u.component(y)*y; for Z dirction add(z)=0; how can add for this? I really hope someone can heip me. Thank you in davance! bojie zhang |
|
October 30, 2011, 03:24 |
|
#2 | ||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
first declare a volVectorField add variable, then loop over it and fill it with your values.
Quote:
Quote:
|
|||
October 31, 2011, 04:52 |
|
#3 |
Member
bojiezhang
Join Date: Jan 2010
Posts: 64
Rep Power: 16 |
Thank you very much! I will try it right now!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |