|August 17, 2013, 05:18||
UDF for specifying species mass fraction gradient at boundary
Join Date: Dec 2012
Posts: 9Rep Power: 5
Pardon me, I am a complete newbie in the UDF sector.
I am modeling two-component purely diffusive species transport. At the boundary, I wish to specify the condition: del.C = 0, that is, the gradient of concentration at exit is zero. I used Mass Fraction as a measure of concentration.
1. Create a UDS, say UDS1, and store in it the value of mass fraction.
2. Create another UDS, say UDS2, and store in it the gradient of UDS1.
3. At boundary, specify the value of UDS2 to be zero.
I created the following UDF:
DEFINE_PROFILE(conc_grad, t, i)
domain = Get_Domain(1);
thread_loop_c (f_thread, domain)
begin_c_loop (c, t)
C_UDSI(c, t, 0) = C_YI(c, t, i); /*First UDS*/
C_UDSI(c, t, 1) = NV_MAG(C_UDSI_G(f, t, 0)); /*Second UDS*/
end_c_loop (c, t)
After successfully interpreting the file, I set the exit boundary as "Outflow", and in the "Boundary Conditions -> Edit -> UDS" tab, specify the value as "udf conf_grad" in the drop-down menu.
After clicking OK, I get the ACCESS VIOLATION error.
I really do not know what the problem is. Could someone help me out please?
Thanks in advance.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Problem of simulating of small droplet with radius of 2mm||liguifan||OpenFOAM Running, Solving & CFD||5||June 3, 2014 02:53|
|Radiation interface||hinca||CFX||15||January 26, 2014 18:11|
|CFX13 Post Periodic interface||EtaEta||CFX||7||December 8, 2011 18:15|
|On the damBreak4phaseFine cases||paean||OpenFOAM Running, Solving & CFD||0||November 14, 2008 22:14|
|mass fraction of species||Ahmed||FLUENT||0||April 18, 2007 11:57|