On Mon, 16 Jun 2008, Brian wrote:
>
> Hello,
>
> I am having troubles running the examples:
>
> amrcp latex/Chp2/method.3
>
> and
>
> amrcp latex/Chp2/method.4
>
> I want to incorporate the smokefoil tracing into my own program but
> when I run these example scripts I get the following error:
>
> Error at line 155 of file /home/bmax/amrita/test/run_smokefoil:
> unknown function 'W::VORT'!
>
> Line 155 is:
> minmax W::VORT[] -> min, max
>
> error near:
> [] -> min, max
>
The problem is caused by a bug in the machinery that sets up an
EquationSet. For the fix, see my posting to Matei in the thread
"shock/detonation interaction with a ramp", May 27.
James
On Mon, 16 Jun 2008, Brian wrote:
>
> Also I am wondering if anyone has written any scripts, or has any
> examples on plotting RHO*DZ/DT for the reactive euler equations case.
You'd have to elaborate a bit more on exactly what you want to plot.
Because of the way the mesh adaption works, it's not possible to provide
a general mechanism for accessing time derivatives in the flow solution.
But if you tell me what you want to do, it should be possible to introduce
some custom code to do the trick.
James
>
> Thanks,
>
> Brian
>
> Thanks James,
>
> I fixed the bug and the script works fine now. Do you have any
> examples of using the Add2W = VORT for the reactive euler case? I
No, but Gary does. But you will see its use is exactly the
same as the for the plain EulerEquations.
> have tried but keeping *** MALLOC FAILED IN GRAB_DSTR *** error... :(
It sounds like you will need to invoke the routine ArraySizes
to increase Amr_sol's storage allocation. For example, you could try:
ArraySizes {
NGIxJ = 1000000
NGD = 4000
}
>
> The problem I am working on is examining the stability of a detonation
> wave after it passes over a cylinder (or a couple cylinders). It
> would be nice to trace the regions of maximum vorticity as in the
> example scripts as well as regions of high reaction rates (RHO*DZ/DT)
> integrated over time.
You could keep track of the rate term in exactly the same way that
the vorticity is tracked. But rather than me spoon-feed you,
I would prefer for you to have a stab on your own, first.
James
On Sun, 22 Jun 2008, Brian wrote:
>
> Thanks James,
>
> I will try that. I also have a problem where I may want to convect
> some inert scalar, i'll call it alpha, throughout the domain so that I
> can track one gas expanding into another. For example I will
> initially set gas A to have a value of alpha=0 and gas B will have a
> value of alpha=1. Is there a way I can add this scalar to the
> equation set for the EulerEquations (not reactive) and take advantage
> of the built in solvers (Roe / Godonov), or do I have to write my own
> discretization for convecting alpha?
BCG could be coerced into doing what you want, but as I've
just pointed out to Gary: BCG's internal construction is
not in the best of shapes and so it would probably be more
trouble than it's worth. Here I should point out that
BCG really is "basic" and it was never intended to be all
things to all people.
Now I understand from Matei that you are signed up to do a Ph.D.
and so if you intend to be doing reactive flow simulations
for any length of time, you should really take the time
to dissect some of the solver's that BCG constructs, so
as to craft your own custom solver. The amount of code
is actually quite small and anything you produce
can always be absorbed back into BCG. And it would be
nice to think that you wanted to go the extra mile,
with the aim of leaving a legacy for Matei's next student.
James