Eulerian-Eulerian Source Term
1 Attachment(s)
Hi!!!
I am trying to simulate a 2D, transient and Eulerian-Eulerian problem. I want to create a source term in x-mon and y-mon directions for both gas and liquid phases. The equation of source term is showed in the figure. My code for create the source term in gas for x-direction is: Code:
DEFINE_SOURCE(intforcexg, c, tm, dS, eqn) When I try to run with x-source force appears this msg: Error: received a fatal signal (Segmentation fault). Error Object: #f I am lost, anyone could help me? ;););) Best Regards!!! |
You are missing dS[eqn] in your UDF.
|
Thank you RAJ KIRAN.
But is really necessary declare Code:
dS[eqn] = 0; Recentelly I discover that the fluent not disponibilize the C_VOF_G, and is necessary compute him. I find two ways for resolve this problem. First: Code:
DEFINE_ADJUST(adjust_gradient_g, gas_dom) Code:
DEFINE_ADJUST(store_gradient_g, domain) Don't forget is possible to dissable the solution of uds in your flow. Just disable in Controls -> Equations. |
Yes, it is necessary to declare dS[eqn]. By setting it to 0 you pass only the the explicit part of the source code. If you want you can also pass the implicit part of the source, this enhances the stability of the solution and will help convergence rates. (According to the manual, you can read more about this in manual)
I used the second code to calculate the volume fraction gradient. It worked without any problems. I think you can also get the same thing done by using UDS, but I did not try this before. |
Quote:
|
1 Attachment(s)
Was observed a differences between the tow methods for obtain the gradient of VOF. See the figures!!!
What is the most correctely? |
C_mu_eff
Hi Guys!!
I resolved the almost problems, but I can't retrieve the value of C_MU_EFF!! What is wrong in the code? Code:
DEFINE_ADJUST(intforcexg, d) |
Quote:
Code:
DEFINE_ADJUST(intforcexg, domain) |
All times are GMT -4. The time now is 04:42. |