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

Unsteady Velocity

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 25, 2020, 04:51
Default Unsteady Velocity
  #1
New Member
 
mostafa_Fx
Join Date: Dec 2020
Posts: 3
Rep Power: 5
aregdgshj is on a distinguished road
Hi

Did it work that these two codes are the same?




DEFINE_PROFILE(Velocity_Un, thread, position)
{
face_t f;

begin_f_loop(f, thread)
{
real t = RP_Get_Real("flow-time");
F_PROFILE(f,thread,position)= 0.33*sin(10.*t);
}
end_f_loop(f,thread)
}
--------------------------------------------------------

DEFINE_PROFILE(Velocity_Un, t, i)
{
real time;

face_t f;
time=CURRENT_TIME;
begin_f_loop(f, t)
{
F_PROFILE(f,t,i)= 0.33*sin(10.*time);
}
end_f_loop(f,t)
}
aregdgshj is offline   Reply With Quote

Old   December 28, 2020, 00:38
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
use second code
for more information Can any tell me which is right for the below codes?
aregdgshj likes this.
__________________
best regards


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

Reply


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
Log law for unsteady velocity profile hyderkhan74 Main CFD Forum 1 July 11, 2012 11:02
UDF for a Unsteady velocity change Paul FLUENT 8 August 29, 2011 03:19
Unsteady velocity Vidya Raja FLUENT 10 June 18, 2006 08:14
Modeling Unsteady Velocity Vidya Raja FLUENT 0 February 19, 2006 17:52
Modeling Unsteady velocity in Fluent Vidya Raja Main CFD Forum 0 November 11, 2005 17:11


All times are GMT -4. The time now is 20:51.