|
[Sponsors] |
Troubles with implementing UDF into Fluent 17 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 20, 2016, 08:44 |
Troubles with implementing UDF into Fluent 17
|
#1 | |
New Member
Join Date: Feb 2016
Posts: 4
Rep Power: 10 |
Hello,
I'm new to UDFs as well as to C programming and need help for my university work. I'm working on a fixed-bed reactor model with chemical reactions (Methane Steam Reforming) in a porous zone and want to implement the kinetic model of Xu and Froment as an UDF. I'm using Fluent 17.0 and Microsoft Visual Studio 2015 for compiling on a 64-Bit Windows 7 Enterprise System. apparently there is a mistake in my code. Fluent tells me: received a fatal signal (segmentation fault) - which i read in other forum threads is a sign that there is a mistake in the code. here's my code: Quote:
Kind regards, f. |
||
May 20, 2016, 18:27 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
First for debugging purposes, simplify your code (cut out sections) until you determine the location of the error. Alternatively, use message functions and print to the screen every few lines.
Segmentation faults are generally caused from trying to access a variable that doesn't exist. Have you got the correct number of species and other parameters? For example, accessing mw[5] when mw only has four entries may cause this error. |
|
May 24, 2016, 05:19 |
|
#3 |
New Member
Join Date: Feb 2016
Posts: 4
Rep Power: 10 |
Thanks very much 'e', good advice! The problem was the usage of Define_SR and a porous system, which apparently doesn't work together. I have now changed to a Volume Reaction and simplified the code and it's working.
|
|
November 1, 2020, 01:31 |
|
#4 | |
New Member
AJITH
Join Date: Jan 2013
Posts: 10
Rep Power: 13 |
Quote:
Hi, I am also trying the same, do you change the Define_SR and adopt Define_VR for working in a porous medium. ? I am a beginner in using UDF in Fluent. Can you please suggest to me some tutorials or references for learning? I am simulating a Steam methane reforming reactor for hydrogen generation. Having a catalyst layer in the reformer tube. I am also working with Define_VR udf. Kindly help. |
||
November 1, 2020, 05:52 |
|
#5 | |
New Member
AJITH
Join Date: Jan 2013
Posts: 10
Rep Power: 13 |
Quote:
Hi, I am also trying the same, do you change the Define_SR and adopt Define_VR for working in a porous medium. ? I am a beginner in using UDF in Fluent. Can you please suggest to me some tutorials or references for learning? I am simulating a Steam methane reforming reactor for hydrogen generation. Having a catalyst layer in the reformer tube. I am also working with Define_VR udf. Kindly help. |
||
November 2, 2020, 06:04 |
|
#6 | |
New Member
khedidja
Join Date: Mar 2020
Posts: 6
Rep Power: 6 |
Quote:
I studie numericaly thermochemical solar reactor based on volumetric porous receiver. however I found lot of difficulties during the modeling of reactor via Ansys-Fluent software, and I'm unsure about simulation detail. I'll be very thankful if you can willing to give me hand. best regard |
||
November 6, 2020, 06:39 |
|
#7 |
New Member
AJITH
Join Date: Jan 2013
Posts: 10
Rep Power: 13 |
I have 3 reaction rate equations and it is converted to UDF file. I am trying DEFINE_VR_RATE. The catalyst inside was modeled as a porous zone, with defined porosity. The question arises when the user inputs are providing to fluent reaction window. Even iam defining rate of reactions by UDF, the Arrhenius rate equation window ask for values of Pre exp factor and activation energy, also temperature exponent. Do the values need again? Does it overwrite the reaction rates which already defines by UDF? Can you provide a solution to this issue.
|
|
November 17, 2020, 03:51 |
|
#8 | |
New Member
AJITH
Join Date: Jan 2013
Posts: 10
Rep Power: 13 |
Quote:
Use this before defining reaction , then it will allow reaction only in fluid domain with porous wall. In the cell zone condition, define porous zone with it properties and provide surface area to volume ratio. if (FLUID_THREAD_P(t) && THREAD_VAR(t).fluid.porous) |
||
Tags |
fixed bed, fluent 17.0, surface reaction rate, udf code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent Radiation/porous media | Schmitt pierre-Louis | FLUENT | 26 | September 1, 2016 11:29 |
Problem running fluent with udf on batch | tobi b. | Fluent UDF and Scheme Programming | 3 | April 14, 2016 14:54 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
fluent UDF external library lapack problem | Rick | FLUENT | 0 | May 7, 2008 11:16 |
UDF problem caused by various version of Fluent | Yurong | FLUENT | 3 | January 15, 2006 11:57 |