|
[Sponsors] |
June 6, 2005, 05:07 |
UDF for Species mass fraction
|
#1 |
Guest
Posts: n/a
|
Hi everyone! I´m solving flow in a artificial heart and need to "reset" mass fraction of a species at certain times during the simulation. I,ve written a DEFINE_ADJUST UDF for the mass fraction, C_YI. But nothing really happens in Fluent. No errors, but the UDF doesnt effect the solution.
Has someone else experienced the same? What to do? Please help. |
|
June 6, 2005, 14:44 |
Re: UDF for Species mass fraction
|
#2 |
Guest
Posts: n/a
|
Not sure what you mean by "nothing really happens in Fluent".
Have you checked that the DEFINE_ADJUST UDF runs? To check it, I would put a dummy print statement in your UDF and make sure you have it hooked up properly. The only times I've used DEFINE_ADJUST, I've had to manually specify the thread_id to perform D_A on. (This can be found by looking at a list of boundaries and domains in Fluent). I've used C_YI several times. I would suggest that you print the initial values of C_YI one time and then print the values of C_YI again once you have changed them in your D_A UDF. Could be that they are changed somewhere else in Fluent, especially if your "reset" doesn't physically make sense. |
|
June 8, 2005, 16:55 |
Re: UDF for Species mass fraction
|
#3 |
Guest
Posts: n/a
|
I have the same problem, I need someone's help for writing the UDF. Can Daniel or Allan help me out in this? I'll be happy to talk to you guys in email. Thank you.
|
|
June 22, 2005, 09:40 |
Re: UDF for Species mass fraction
|
#4 |
Guest
Posts: n/a
|
Hi! I believe that define adjust would work. To reset the mass fraction, one should just loop over all threads and cells:
Domain *d = Get_Domain(1); Thread *t; cell_t c; /*Loop over Thread and cell*/ C_YI(c,t,0) = 0.; /*End Thread and cell loop*/ where C_YI(c,t,0) is the species mass fraction. Since I have had other, more severe problems, I have not tried it. I get convergence problems related to the spcies transport equation. If you have any general guidelines for this I'd be happy to hear them. /Daniel I |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP! adding a mass source to VOF eqn. by UDF??? | ROOZBEH | FLUENT | 5 | December 3, 2016 18:53 |
Multiphase Mass transfer UDF issue | therandomestname | FLUENT | 0 | April 21, 2011 15:51 |
PB: Saving mass fraction of species on two points with an udf | biget.a | FLUENT | 2 | July 23, 2009 04:06 |
Vof, udf and mass transfer panel | Jay | FLUENT | 1 | March 15, 2005 01:29 |
UDF for Species mass fraction | Rahul | FLUENT | 0 | September 20, 2002 05:22 |