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

Perturbation to a Steady State Solution, how to?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2015, 05:56
Default Perturbation to a Steady State Solution, how to?
  #1
New Member
 
Ashwin N
Join Date: Feb 2015
Posts: 1
Rep Power: 0
ash_n is on a distinguished road
Hey all!

So I am modelling a simple Laminar 2D Pipe flow in Fluent, (which I am new to btw). So, once I solve for the transient case for a certain timesteps and I get more or less a steady state solution, I want to introduce a pressure perturbation at the inlet and wanna gauge the response of the fluid. How can I go about doing this in Fluent?

Kindly suggest a simple method for this.

Regards.
ash_n is offline   Reply With Quote

Old   October 17, 2017, 06:46
Default introducing a perturbation
  #2
New Member
 
Rohit
Join Date: Jul 2016
Posts: 9
Rep Power: 9
rohitkjohn is on a distinguished road
Hello,

If you want to introduce a perturbation by changing the boundary condition, I would suggest you use a UDF. The following is a code which you can save as a .c file and compile in FLUENT


/* the following UDF imposes a value of pressure p0 at the required boundary before time t1. Once t1 is crossed the this a perturbation is introduced in the form
of an increased pressure, p1, at the boundary. This is done using an if-else condition
*/

#include "udf.h"

DEFINE_PROFILE(unsteady_pressure, thread, position)
{
face_t f;
real t = CURRENT_TIME;
real t1 = 0.1; /*The time after which you want to add the perturbation*/
real p0 = 200; /*This is the initial pressure you impose at the boundary*/
real p1 = 210; /*This the perturbed value of pressure*/

begin_f_loop(f, thread)
{
if(t<t1)
{
F_PROFILE(f, thread, position) = p0;
}

else
{
F_PROFILE(f, thread, position) = p1;

}
}
end_f_loop(f, thread)
}
rohitkjohn is offline   Reply With Quote

Old   October 17, 2017, 06:47
Default
  #3
New Member
 
Rohit
Join Date: Jul 2016
Posts: 9
Rep Power: 9
rohitkjohn is on a distinguished road
you may search online how to add a UDF to FLUENT
rohitkjohn is offline   Reply With Quote

Reply

Tags
oscillations, perturbation, response


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
Solidification modelling-Continuous Casting- Steady State. lucky_m_m FLUENT 1 June 8, 2022 22:23
The difference between steady state and transient JuPa CFX 36 December 9, 2019 22:50
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Solver for transonic flow? Martin Hegedus OpenFOAM Running, Solving & CFD 22 December 16, 2015 04:59
Steady State 2 phase problem fivos FLUENT 0 April 27, 2009 16:34


All times are GMT -4. The time now is 16:00.