About Lorentz force
I plan to simulate the natural convection of aqueous solutions of sodium chloride in a cubic cell under a uniform magnetic field. Would you please give a hand to tell me how to do it using fluent? Thanks in advance.
|
Re: About Lorentz force
You have two possibilities: Either You can calulate the Lorentz force directly in a user-definied subroutine or You teat the lorentz force as a user-defined scalar.
|
Re: About Lorentz force
Dear Rüdiger Schwarze, Thank you very much. I am a new comer. I think I should use user-defined subroutine. But I have no such kind of experiment. Could you give me a hand? How about send me a sample? Thanks in advance. Li
|
Re: About Lorentz force
Lorentz force density in x:
DEFINE_SOURCE(x_imp, cell, thread, dS, eqn) { /* variables */ float jz, by, source; float x[ND_ND]; /* coordinates of cell center */ C_CENTROID(x,cell,thread); xk = x[0]; yk = x[1]; jz = f(xk,yk); /* eddy current density, deduced from analytical formula */ by = f(xk,yk); /* magnetic flux density, deduced from analytical formula */ source = -jz*by; dS[eqn] = 0.0; |
Re: About Lorentz force
Thanks a lot. I will try it.
|
Quote:
|
All times are GMT -4. The time now is 17:13. |