Hi Will,
Warning from Imperial College ICT: This message contains a link to a website sometimes used by "phishers" to steal credentials.
Caution is advised when clicking on these links. To avoid credential theft, you should not enter your Imperial College username and password into any form linked from this message.
The original messages continues below.
--
You received this message because you are subscribed to the Google Groups "PyFR Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyfrmailingli...@googlegroups.com.
To post to this group, send email to pyfrmai...@googlegroups.com.
Visit this group at https://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.
Dear Will,
You are comparing the solutions at two different Reynolds
numbers, 100 on PyFR and 10 on OpenFOAM. The example case of
OpenFOAM uses a side length of 0.1 whereas in your PyFR mesh it is
1. I have attached a file showing the results for P=4 at Re=10
(left) and Re=100 (right) using the artificial compressibility
solver with the p-multigrid. You can see that Re=10 resembles your
OpenFOAM solution.
About the speed. PyFR targets unsteady turbulent flows and icoFoam is tailored for steady laminar incompressible flows. You cannot compete with an unsteady solver against a pure steady state solver in a steady problem. Moreover, the problem size is very small and does not fully leverage the parallelism of GPUs.
I have not simulated any internal flows using the artificial
compressibility solver. You can search for older work by Dochan Kwak on internal
flows using AC.
Regards,
Niki
Warning from Imperial College ICT: This message contains a link to a website sometimes used by "phishers" to steal credentials.
Caution is advised when clicking on these links. To avoid credential theft, you should not enter your Imperial College username and password into any form linked from this message.
The original messages continues below.
Hi Will,
Artificial compressibility factor sets the pseudo speed of sound
and therefore adjusts the characteristics of the system. Typical
values for ac-zeta are (1 -- 10)*maximum velocity magnitude. If
you set ac-zeta very large, it limits your explicit pseudo-time
step and kills the performance.
A strong pseudo pressure wave occurs always in the beginning of the simulation. With a large ac-zeta value, it seems weaker than with lower ac-zeta because it has travelled further with respect to the flow field (pseudo-speed of sound/flow speed). In an ideal case, this initial wave would be killed during the first physical time step by just performing a lot of iterations, but it is not feasible. Therefore, the residual of this initial wave tends to propagate in physical time during the initial transient phase of the simulation. With external flows the wave can be easily dissipated by a sponge region at the far-field boundaries. In internal flows you just need let it bounce during the initial transient phase and wait until it is naturally dissipated by viscosity. Please not that this wave occurs only in the very beginning when you start the simulation from initial conditions that are "far away" from the actual solution. You only need to develop the flow once and then you can keep restarting from the developed solution to gather statistics.
About the boundary conditions. The values in the solution file
are domain-sided values from the polynomial representation of the
solution. Remember that the solution is discontinuous in FR! The
actual boundary velocity would be
BCvelocity = 0.5*(u_domainside + u_ghostside),
which would be exactly one for the lid in the cavity flow.
Regards,
Niki
Hi Will,
If you look at the pressure field early in the simulation you can
clearly see that there is a periodicity issue. The source term you
impose is perfectly fine, but it does work for the gradient
between the periodic back face and the front face.
p(x) = 0 - 4x,
p'(x)= -4
but derivative at the discontinuity reads p'(0) = [p(0) -
p(8)]/dx = [0 - (-32)]/dx.