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

Simulation Fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2018, 14:20
Default Simulation Fluent
  #1
New Member
 
Pedro Jesus Sanchez
Join Date: Aug 2018
Posts: 27
Rep Power: 7
p52sarup is on a distinguished road
Hello

I would like to know how the fluid evolves within a system. Imagine an airbox with a constant spend of air, that airbox is gaining pressure with the passage of time, for example in 30 seconds it goes from P = 0 bar to P = 0.5 bar, and when it reaches this limit the spend becomes 0 in a instant

Could I represent this problem in Ansys?
p52sarup is offline   Reply With Quote

Old   August 22, 2018, 16:34
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
P = 0 bara does not exist in this universe. You have to try another number =).


The problem seems easily doable but you have a problem with your description. How do you determine when the stuff in the box is 5 bar? Because it is a pressure field and everywhere will be a different number.


Are you sure you want a constant velocity inlet and are you sure you don't wan to use a pressure inlet of 5 bar? This way when the contents reach the equilibrium pressure, the flow naturally stops.
LuckyTran is offline   Reply With Quote

Old   August 22, 2018, 17:01
Default
  #3
New Member
 
Pedro Jesus Sanchez
Join Date: Aug 2018
Posts: 27
Rep Power: 7
p52sarup is on a distinguished road
Sorry for my description, I did it in a hurry. I will detail the problem better .

It is the airbox of a motorcycle. I want to do a simulation from the beginning to the end. We imagine a straight, at the beginning I have atmospheric pressure in the airbox and a motor spend mass flow that depends of RPM. As accelerated and the motorcycle change the pressure value goes up and the air consumption of the engine also increases. At the end of the straight I have the maximum pressure in the airbox and that's when I close the accelerator and the spend mass flow is 0, therefore a peak pressure is produced. Is there any way to simulate this whole process?

I have read about procedure UDF.

Could be varying the inlet pressure and the outflow in time, simultaneously?

Thank you

Last edited by p52sarup; August 22, 2018 at 19:44.
p52sarup is offline   Reply With Quote

Old   August 23, 2018, 11:31
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You can turn the airflow on/off simply by changing the BC condition type or setting the massflow to 0. No need for complicated UDF.

I.e. you simulate 30 seconds with some massflow. Then you change the BC. Then you simulate another 30 seconds or whatever.

Only if you want a time-varying inlet pressure or time-varying massflow do you need to do a UDF. And you don't even need a UDF. You could still do it with a simple profile text file which contains a list of the values at each time.
LuckyTran is offline   Reply With Quote

Old   August 23, 2018, 19:58
Default
  #5
New Member
 
Pedro Jesus Sanchez
Join Date: Aug 2018
Posts: 27
Rep Power: 7
p52sarup is on a distinguished road
Thanks a lot.

The pressure at the inlet varies with time, also the mass flow at the outlet.

I have incorporated this UDF to the inlet:

#include "udf.h"

DEFINE_PROFILE (unsteady_pressure, thread, position)
{
face_t f;
real t = CURRENT_TIME;

begin_f_loop (f, thread)
{
F_PROFILE (f, thread, position) = 101312 + 50 * t;
}
end_f_loop (f, thread)
}


But I do not understand very well how it works. As I understand it, the pressure will increase 101312 + 50 * t, with "t" being the time-step established in our set-up. it is right?

If this is correct, I will do the same in the outlet whit the flow.

the other possibility that you comment "profile text file", how is the procedure to do it?

thank
p52sarup 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
looking for a smart interface matlab fluent chary FLUENT 24 June 18, 2021 09:07
Start new Ansys Fluent Simulation automatically Malue Fluent UDF and Scheme Programming 1 October 4, 2017 01:48
Which Multiphase Model Should be selected in Fluent for my below described simulation oberstar Fluent Multiphase 0 September 28, 2017 12:05
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 22:56
Simulation on fluent 14 NAD FLUENT 0 September 11, 2013 02:05


All times are GMT -4. The time now is 22:59.