FLUID (Fast Light User Interface Designer) is a graphical editor and GUI builder that is used to produce FLTK source code. FLUID edits and saves its state in text .fl files, which can be edited in a text editor for finer control over display and behavior.After designing the application, FLUID compiles the .fl file into a .cxx file, which defines all the objects from the .fl file, and an .h file, which declares all the global ones. FLUID also supports localization of label strings using message files and the GNU gettext or POSIX catgets interfaces.
A simple program can be made by putting all non-interface code (including a main function) into the .fl file, thus making the .cxx file a single source file to compile. Most programs are more complex than this, so other .cxx files can be written that call the FLUID functions. These .cxx files must #include the .h file, or they can #include the .cxx file so it still appears to be a single source file.
Normally the FLUID file defines one or more functions or classes, which output C++ code. Each function defines one or more FLTK windows, and all the widgets that go inside those windows.
Widgets created by FLUID are "named", "complex named", or "unnamed". A named widget has a legal C++ variable identifier as its name (i.e. only alphanumeric and underscore), and is defined by a global variable or class member that will point at the widget after the function defining it is called. A complex named object has punctuation such as '.' or '->' or any other symbols in its name. In this case, FLUID assigns a pointer to the widget to the name, but does not attempt to declare it. This can be used to get the widgets into structures. An unnamed widget has a blank name and no pointer is stored.
Widgets may either call a named callback function that one writes in another source file, or one can supply a small piece of C++ source and FLUID will write a private callback function into the .cxx file.
Hi PF!
I am solving a problem for low-gravity capillary-dominated flow, where liquid rests in a rectangular (2D) channel. The text I'm reading introduces a velocity potential ##\hat u = \nabla \phi##, and then states that each oscillation mode is ##\partial_n\phi|_\Gamma = \nabla \phi \cdot...
Hi guys,
I am involved in some research on modelling sound from fluids through mirco annuli and i have been trying to get some of the basic fundamentals on generation of sounds from turbulent flow. Unfortunately most of the online literature do not give much details on the physics of such...
((((As a correction dissipation function in picture should have square of divergence of U))))
Hi, first of all I am aware that we have to discretize the non linear navier stokes equations to reach the almost exact solution, and pressure based or density based algorithms are deployed for that...
Hello,
I'm trying to create a simulation of swimming "Animats" (artificial animal). However, I'm only an high school student, so I don't know how to deal with fluid drag and fluid dynamics.
In this link you could find a short animation I made describing the swim motion my animat is going to...
I wasn't sure whether to post this in here or in computer programming, since it touches on both.
I have a personal project that is based on a 2-dimensional finite-element fluid simulation (which already works just fine) but needs to be able to simulate an elastic membrane stretched across a...
Fluid comes in at ##T_1## and comes out at ##T_2## and I know that heat is exchanged with steam at constant ##T_{steam}##.
If I want to know the Surface of the exchanger then
##US(T_{steam}-T_{fluid}) = \dot m_{fluid} cp_{fluid} (T_2-T_1)##
My question is, since ##T_{fluid}## changes, which...
Homework Statement
the picture has all the information
Homework Equations
I am assuming we will be needing the viscosity equation, tao= mue(dv/dy) where v is velocity
The Attempt at a Solution
I do not know how to approach this exercise.
How much pressure in PSI would it take to generate 150mph stream out of a 2 mm perfectly round orifice? And how many GPM would that equate to? Thanks for any help
I'm studying fluid dynamics and we just had a lecture about the momentum equation. We started the lecture by talking about pressure in terms of molecules moving across a hypothetical surface element and carrying their momentum with them (in both directions). There are 2 things confusing me about...
Homework Statement
Derive the relativistic Euler equation by contracting the conservation law $$\partial _\mu {T^{\mu \nu}} =0$$ with the projection tensor $${P^{\sigma}}_\nu = {\delta^{\sigma}}_\nu + U^{\sigma} U_{\nu}$$ for a perfect fluid.
Homework Equations
$$\partial _\mu {T^{\mu \nu}} =...
Dear, Everyone
I am a new member here, nice to meet you..
First, I want to introduce my self, I am a master student of physics and I am studying CFD right now. It's a new topic for me and I will also do my research about simulation of fluid dynamics related to CFD. Actually, I got this topic...
Homework Statement
If the velocity v of the air in a boundary layer having a dynamic viscosity of
18x10-6 kg/ms is given in terms of the distance y from the surface by v = ay + by2
where a and b are constants, calculate the surface shear stress if at 1.5 mm from the surface the velocity is 75...
Homework Statement
I have a syringe filled with water. This syringe is a cylinder with a length of 3 inches (L), diameter of 1.5 inches (D). Attached to the syringe is a constant force spring, which pushes the plunger into the syringe with a force of 2 pounds (F). Ignore the friction between...
At supersonic speed, air become compressible. However why does Mach number decrease when flow area decrease? I understand that pressure will increase because the density will increase when flow area decrease. However shouldn't the Mach number increase in order to conserve mass flow? Unless the...
-Suppose that drop of some fluid ,with which water is miscible, that has higher density than water is dropped in the glass of (still) water.
Forces acting on the drop are gravity and drag force (viscous resistance, Fd=-bv, where v is the velocity of the drop, and b is a constant that depends on...
Hi,
I finished my first Bachelor in Physics, than continued my studies by finishing second bachelor in mechanical engineering.
I am a very enthusiastic pilot, maybe that's the reason why I'm pulled towards fluid dynamics and soft body dynamics.
Well my dilemma is the following: I don't know...
I believe this thread is sufficiently different from one that was recently closed to not violate any guidelines, though there are unfortunately some similarities as the closed thread sparked the questions in my mind.
If we look at the stress energy tensor of a perfect fluid in geometric units...
Homework Statement
A tank of constant volume V contains air at an initial density pi. Air is discharged isothermally from the tank at a constant volumetric rate of Q (with SI units of m^3/s). Assuming that the discharged air has the same density as that of the air in the tank, find an...
Hi,
I've been studying fluid mechanics for my mech. engineering degree for the past few months. Unlike my other subjects (mechanical analysis, thermodynamics, automated systems, mechanical vibrations), I can't seem to grasp the problem-solving technique.
The annoying thing is, I find the...
In a closed fluidic system (with a pump), fluid velocity is constant throughout the system but what puzzles me is the pressure drop due to viscous effect. In a horizontal pipe, pressure decreases gradually (assuming low friction) down the pipe due to viscous effect. In this concepts, it's hard...
Sorry if this is to basic of a question. I'm trying to find a formula that will describe a viscous, but compressible fluid. This would just be a generic formula as a starting point. I'm trying to describe the variability of densities through this fluid. The closest thing I can find is a...
Hello,
I have two questions regarding a setup concerning fluid 4He.
Assume there's a container of some height filled with liquid 4He and a mass that is released from rest at its surface. Two questions:
(1) Using what technique can it be decided whether the liquid is a superfluid or normal...
Homework Statement
Can anyone please give me hard and interesting problems regarding fluid mechanics problems such as hydrostatic and air prssure bouyance force and Bernoullis equation(Bernoullis equation problems only for liquids)? I tried looking for them but the ones I found were quite...
Hi. Imagine a large pipe 10 m wide through which water is flowing at 10 m/s. You are in the stream flowing at the same speed, two other people are stationary at the entrance and in the middle of the venturi. You flow to the a venturi constriction that is 5 m wide. Apart from the acceleration you...
Here is the experience: I put two electrodes inside paraffin oil (separated by at least 3cm), and submitted the electrodes to high voltage. At 20000 V - 30000 V, strong streams can be observed inside the paraffin oil. Since paraffin oil is a good dielectric, I just would like to understand the...
Homework Statement
A cylinder with varying diameters is being filled and emptied at the same time. The time is measured.
I know Flow rate into cylinder. How do I find the height of fluid in the cylinder at a particular time?
The diameter of the hole is 0.005m.
The diameter of the bottom of the...
I tried using the Bernoulli equation to solve this. I took two points at the surface of the water in both the containers and formed this equation:
gh_{b}=\frac{1}{2}v^2+gh
This is assuming that the velocity of the water in the large tank is approximately zero and using the fact that both the...
Homework Statement
Consider a spherical particle immersed in water. It will experience random collisions with the surrounding water molecules. Suppose there are such water molecules around the particle. Half (n/2) of the water molecules will push the particle to the right and the other half to...
Hi guys,
I came upon a definition of Non Newtonian fluid that is any fluid which doesn't deform linearly with increasing stress. But then if you think about fluids, pretty much every fluid acts like this, depending on whether you're actually capable of generating enough force to see it happen...
Hey! I just came across this text ;
from http://www.feynmanlectures.caltech.edu/II_40.html
I tried to find "the law of hydrostatics" on the internet, to find no other mention of it. (would appreciate links to more details on it or any ideas regarding the topic)
What is really puzzling is how...
Homework Statement
I wanted to know if the flow rate and velocity would stay constant or change in nozzles 1,2 and 3 in a incompressible fluid flow through a rectangular duct. (Illustrated image in attachment).
Aim is to have the same amount of fluid flowing out of each of the nozzles...
I wanted to know if the flow rate and velocity would stay constant or change in nozzles 1,2 and 3 in a incompressible fluid flow through a rectangular duct. (Illustrated image in attachment).
Aim is to have he same amount of fluid flowing out of each of the nozzles.
Would the flow rate be...
Let's assume you have a perfectly insulated closed liquid loop with a pump who's motor is cooled by the liquid its pumping. Assume steady state operation, so the pump is operating at some pressure difference and flow rate based on intersection of pump curve and back pressure curve. Does this...
The Nusselt number represents the ratio of heat transfer by convection relative to conduction.
At the onset of convection does this correspond to a Nusselt number of 1?
I get how to find vertical and horizontal forces on a submerged surface (vertical = weight of fluid and horizontal = force on vertical projection). I also get how to find the point of application for the horizontal force using a moment balance. But how do you determine the point of application...
Homework Statement
A uniform U-tube is partially filled with water (ρH20 = 1000 kg/m3). Oil, of density 750 kg/m3, is poured into the right arm until the water level in the left arm rises 30 mm. The length of the oil column is then: (Answer: 40mm)
Homework Equations
P = pgh
Pressure = density...
Homework Statement
All over the place here so bare with me, I'll get the hang of it eventually.
-----For these types of problems.. can you start at either the top of the tank or from point a?
-----Given specific Gravity, you need gamma of the unknown fluid so you multiply it by the density...
Homework Statement
Problem: https://imgur.com/a/ppDy6
Calculate the fluid speed at a certain point
Given fluid and sound speed before the point
Length of the conduct
2. Useful Equations:
Uniformly accelerated motion(my solution)
I have been studying this problem it for some time, have...
Hello. The textbook that was assigned to my class is not a good fit for my professor. The textbook simplifies the basic force equations so that there are no general equations with integrals or vector calculus calculations. Can anybody recommend a Fluid Mechanics book or books that deal only...
For my research I am trying to study the temperature change of a warm fluid (air) flowing over a cold surface, but I have not studied fluid mechanics. Does anyone know of an equation that can be used to analyze this problem? To give some reference, the hot air is 49 Celsius and the cold air is...
Homework Statement
Consider a glass sphere completely filled with water except for a small air bubble at 1 atmosphere. The sphere is accelerating to the right. What is the pressure at the center of the sphere?
Let Pe = Atmospheric pressure
r = radius of sphere
pw = density of water
a =...
Good day folks!
I am working on the simulation of an engine, and in particular the oil system makes my head ache. I already finished the calculations for viscosity and temperature, but now I'm stuck on coming up with formulas for pressure and flow rates. With what should I start?
For...
i am an aerospace engineer and have good knowledge in fluid and gas dynamics and i want to study astrophysical fluid dynamics , should i study intro to astronomy and astrophysics ?
and what are best books in astrophysical fluid dynamics ?
When I read explanations about the early Universe and the oscillations of the photon-baryon fluid before recombination, effects of the cosmological constant and of the curvature of the Universe on the fluid are never discussed. Only dark matter, baryons, and photons are mentionned.
Dark energy...
I am confused about the pressure depending only on the depth of the liquid, particularly for a cone.
Up until
P=mg/A=ρVg/A
I understand it, but the problem I have is cancelling the area with the volume to give the height. How does this work when the volume of the liquid in the cone is not given...
In an Inviscid fluid would the no slip condition exist?
If it didn't would it follow that the free stream velocity would exist at the wall ?.
If this was the case would surface roughness still present an orthogonal area upon which the kinetic energy of the fluid would interact causing a...
Hi Everyone,
I am currently doing undergraduate program in mechanical engineering. I want to pursue masters after my B.Tech in the field of fluid mechanics and aerospace engineering.I want to know about the prospects of this field in the future research.
Thanks in advance,
Ritwik Kulkarni
I'm having fluid dynamics classes right now and I'm enjoying it very much (much more than my solid mechanics classes, by the way). Also, I do like programming and computer science, and CFD looks like a very interesting field. I'm developing a real interest for it.
One question for those who are...