CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

defining mass (moisture content) over a surface

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2020, 01:30
Default defining mass (moisture content) over a surface
  #1
New Member
 
Abbas Raza
Join Date: Nov 2020
Posts: 27
Rep Power: 3
Abbas20000220 is on a distinguished road
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
Abbas20000220 is offline   Reply With Quote

Old   December 15, 2020, 01:59
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,989
Rep Power: 30
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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)
}
Abbas20000220 likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   December 15, 2020, 02:09
Default moisture
  #3
New Member
 
Abbas Raza
Join Date: Nov 2020
Posts: 27
Rep Power: 3
Abbas20000220 is on a distinguished road
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
Abbas20000220 is offline   Reply With Quote

Old   December 15, 2020, 02:25
Default moisture
  #4
New Member
 
Abbas Raza
Join Date: Nov 2020
Posts: 27
Rep Power: 3
Abbas20000220 is on a distinguished road
Hi

Receiving this error, "Received fatal signal (segmentation fault). #F error

Can you aid me how to tackle this?

Thanks in advance.

Regards,

Abbas
Abbas20000220 is offline   Reply With Quote

Reply

Tags
ansys 2020, fluent 2020 r2, moisture content, udf and programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Surface Integrals of Species Mass Flow to Wall Incorrect koad FLUENT 4 January 12, 2016 16:38
Surface inejction- steady state - mass flow rate CFD-student FLUENT 0 January 25, 2012 13:40
[ICEM] Automatic mesh generation script surface intersection problem stuart23 ANSYS Meshing & Geometry 0 May 13, 2011 01:10
Surface Integral - Mass Flow Rate Venkatesh V FLUENT 3 October 10, 2008 16:18
mass flow rate on the Iso-clip surface & interior Sunil Gupta FLUENT 0 April 22, 2008 09:29


All times are GMT -4. The time now is 23:25.