|
[Sponsors] |
June 8, 2012, 14:22 |
Expanding Bubble Underwater
|
#1 |
Member
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 13 |
Hey guys,
I'm working on a simulation where I'm trying to simulate the rapid growth of a bubble underwater.( it grows to a diameter of 1.5cm in 100ms) The whole purpose is to see how the shockwaves generated from the bubble interact with the surrounding walls. This bubbe expansion is taking place within a parabolic wall. The closes thing I found to my problem was a UDF that models the swellig of a particle. I found it from the Fluent 12 UDF Manual. However, whenever I run this UDF I get the error about how my material is not defined. I would appreciate any help or insight you can provide for my problem. I am not sure if I am approaching this problem correctly or not. Many thanks Error: C:\Users\sramjatan1\Desktop\EVAP_SWELLINGLAW.C: line 9: P_MATERIAL: undeclared variable ------------------------------------------------------------ #include "udf.h" DEFINE_DPM_LAW(Evapor_Swelling_Law, p, ci) { real swelling_coeff = 1.1; /* first, call standard evaporation routine to calculate * * the mass and heat transfer */ VaporizationLaw(p); /* compute new particle diameter and density */ P_DIAM(p) = P_INIT_DIAM(p)*(1. + (swelling_coeff - 1.)* (P_INIT_MASS(p)-P_MASS(p))/(DPM_VOLATILE_FRACTION(p)*P_INIT_MASS(p))); P_RHO(p) = P_MASS(p) / (3.14159*P_DIAM(p)*P_DIAM(p)*P_DIAM(p)/6); P_RHO(p) = MAX(0.1, MIN(1e5, P_RHO(p))); } |
|
June 9, 2012, 03:28 |
|
#2 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26 |
P-material refers to dpm injection: have you define your injection and dpm material (this one after setting injection(s))?
|
|
June 11, 2012, 14:16 |
|
#3 | |
Member
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 13 |
Quote:
when you say "define your injection and dpm material" is this done in the UDF or is this done on the fluent interface panel?? What would I need to add to my UDF code to properly define my injection and dpm material?? I"m sorry but I'm new to this software. thanks so much for the help |
||
June 12, 2012, 03:32 |
|
#4 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26 |
Hi Mike,
you have to set injections not in udf but in fluent panels; see this link: http://hpce.iitm.ac.in/website/Manua...htm#Injections After setting injections you have to go to material panel, and you will see a new item added for dpm; edit it with data for your material; ex: air if your bubble contains air. PS: remember also to hook your udf once interpreted/compiled. http://hpce.iitm.ac.in/website/Manua...ec-use-dpm-law |
|
June 18, 2012, 11:13 |
|
#5 |
Member
Mike
Join Date: Jun 2012
Posts: 58
Rep Power: 13 |
ghost82,
I followed your directions and it still says Error: C:\Users\sramjatan1\Desktop\EVAP_SWELLINGLAW.C: line 9: P_MATERIAL: undeclared variable I created an injection type and edited it in the material panel also. However, when I interpret my UDF it still says my P_Material is not defined. What model am I supposed to run this as? I'm not sure what I"m doing wrong still. thanks for the help |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 03:32 |
bubble rising in a column | swamysrikanth | Main CFD Forum | 2 | September 27, 2010 08:59 |
Separation bubble, hypersonic compression corner | ben akih | CFX | 3 | December 10, 2006 16:33 |
gas hold up in bubble | Shelly | Main CFD Forum | 0 | November 13, 2006 00:28 |
Query on VOF for Bubble rise | Vamsi | Main CFD Forum | 0 | December 22, 2005 00:02 |