|
[Sponsors] |
udf: volume fraction gradient in eulerian model |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2004, 18:49 |
udf: volume fraction gradient in eulerian model
|
#1 |
Guest
Posts: n/a
|
hi,everyone, I try to use udf to express solid phase pressure,I compile the UDF in FLUENT with no problem, but when I start calculating, FLUENT gives me this: Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()
here is my little UDF: #include "udf.h" DEFINE_SOURCE(y_solid_pressure, cell, thread, dS, eqn) { real void_s, con, v_s, source=0.0; void_s = C_VOF(cell, thread); con = -8.686*(1.0-void_s)+6.385; if (Data_Valid_P()) v_s = C_VOF_G(cell, thread)[1];//problem is in this sentence source = pow(10,con)*v_s; dS[eqn] = 0.0; return source; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 06:09 |
The gradient of void fraction in UDF | summer | FLUENT | 2 | May 20, 2011 03:34 |
UDF for Species Mass Fraction Gradient *IN SPECIFIC ZONE * -- e.g. along axis of sym. | ksiegs2 | Fluent UDF and Scheme Programming | 0 | February 27, 2011 12:55 |
Help on accessing volume fraction in mixture model | achuneka | FLUENT | 8 | September 4, 2009 06:22 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |