|
[Sponsors] |
defining mass (moisture content) over a surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 15, 2020, 02:30 |
defining mass (moisture content) over a surface
|
#1 |
New Member
Abbas Raza
Join Date: Nov 2020
Posts: 27
Rep Power: 6 |
Hi
I am here to define moisture over a surface. I am writing a UDF for this. Please help me out. #include "udf.h" DEFINE_PROFILE(mass,t,i) face_t f; cell_t c; Thread *t; real x[ND_ND]; real A[ND_ND],At; real x_H2O; begin_f_loop(f,t) { F_AREA(A,f,t); At=NV_MAG(A); F_CENTROID(x,f,t); C_YI(c,ti); x_H2O=C_YI(c,t,i); } end_f_loop(f,t) } I am getting segmentation fault error. Regards, Abbas |
|
December 15, 2020, 02:59 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
C_YI is a mass fraction of species at center of cell (not at face)
F_YI(f,t,i) is species mass fraction at face not sure why you want to apply mass fraction of species as a boundary, but code will look like: Code:
#include "udf.h" DEFINE_PROFILE(pressure_profile,t,i) { real y; face_t f; begin_f_loop(f,t) { F_PROFILE(f,t,i) = F_YI(f,t,0); //here 0 is a first species (counting starts from 0, 1, 2, ...) } end_f_loop(f,t) }
__________________
best regards ****************************** press LIKE if this message was helpful |
|
December 15, 2020, 03:09 |
moisture
|
#3 |
New Member
Abbas Raza
Join Date: Nov 2020
Posts: 27
Rep Power: 6 |
Thanks a lot for your response.
Yes, I want to introduce moisture in the center of cells. I have a fluid inlet in which moisture is defined through mixture template. Now I want this moisture content should be introduced over the surface (contact region of two fluids). For this, I am trying it. As I am new and looking forward your kind response in this regard. Regards, Abbas Raza |
|
December 15, 2020, 03:25 |
moisture
|
#4 |
New Member
Abbas Raza
Join Date: Nov 2020
Posts: 27
Rep Power: 6 |
Hi
Receiving this error, "Received fatal signal (segmentation fault). #F error Can you aid me how to tackle this? Thanks in advance. Regards, Abbas |
|
Tags |
ansys 2020, fluent 2020 r2, moisture content, udf and programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surface Integrals of Species Mass Flow to Wall Incorrect | koad | FLUENT | 4 | January 12, 2016 17:38 |
Surface inejction- steady state - mass flow rate | CFD-student | FLUENT | 0 | January 25, 2012 14:40 |
[ICEM] Automatic mesh generation script surface intersection problem | stuart23 | ANSYS Meshing & Geometry | 0 | May 13, 2011 02:10 |
Surface Integral - Mass Flow Rate | Venkatesh V | FLUENT | 3 | October 10, 2008 17:18 |
mass flow rate on the Iso-clip surface & interior | Sunil Gupta | FLUENT | 0 | April 22, 2008 10:29 |