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

moving wall UDF, hydrophobic wall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2023, 13:30
Default moving wall UDF, hydrophobic wall
  #1
New Member
 
Join Date: Nov 2011
Posts: 4
Rep Power: 14
naderafshar is on a distinguished road
Hi everyone
I am simulating a circular plain channel in laminar flow (2D). The main challenge is that I want to move channel walls with a velocity equal to :
Uwall= -0.01*(dU/dy) (at wall)
I have written below UDF code. There is no error when I interpret it, but after I want to apply it on the walls, I see this error:
"Received signal SIGSEGV "
The code is:
#include "udf.h"
#include "mem.h"
#include "math.h"
real Q;
DEFINE_PROFILE(moving_wall, thread, i)
{
face_t f;
Thread*t;
cell_t c;
begin_f_loop(f, thread)
{
Q = C_DUDY(c,t);
F_PROFILE(f, thread, i)= -Q*0.0001;
}
end_f_loop(f, thread)
}
Please help me.
All the best
naderafshar is offline   Reply With Quote

Reply

Tags
hydrophobic surface, hydrophobicity, moving wall


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
[snappyHexMesh] How to draw a 3D-Drawing for Meshing Kahnbein.Kai OpenFOAM Meshing & Mesh Conversion 4 June 15, 2021 12:16
UDF moving wall libia87 Fluent UDF and Scheme Programming 42 September 29, 2020 01:09
Replicating Scalable Wall Function with a UDF yousefaz FLUENT 0 August 4, 2017 02:30
UDF Moving wall preview strange Iggy_LR Fluent UDF and Scheme Programming 3 February 5, 2016 16:41
stationary wall vs. moving wall user0314 FLUENT 0 August 26, 2011 09:42


All times are GMT -4. The time now is 12:53.