Google Groups Home
Help | Sign in
boundary condition for pulsate problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Brian  
View profile
 More options Jun 10, 2:43 pm
From: Brian <maxwellbr...@yahoo.ca>
Date: Tue, 10 Jun 2008 11:43:46 -0700 (PDT)
Local: Tues, Jun 10 2008 2:43 pm
Subject: boundary condition for pulsate problem
Hello,

I have a question about how the boundary conditions are setup in the
pulsate problem.
I have noticed that the ZND solution is interpolated to the west
boundary when the problem is setup, but does the solution at this
boundary remain constant throughout the simulation?  If I am passing a
ZND wave over an object close to the western bounday, should I specify
an extrapolative boundary instead if I do not want to have any
reflections from the western boundary affect my solution?

Thanks,

Brian

PS:  I am actually running a 2-D simulation of a detonation wave, and
not a 1-D simulation.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Quirk  
View profile
 More options Jun 10, 3:32 pm
From: James Quirk <j...@galcit.caltech.edu>
Date: Tue, 10 Jun 2008 12:32:37 -0700 (PDT)
Local: Tues, Jun 10 2008 3:32 pm
Subject: Re: boundary condition for pulsate problem
Brian,

> Hello,

> I have a question about how the boundary conditions are setup in the
> pulsate problem.
> I have noticed that the ZND solution is interpolated to the west

The "interp" function is used to paint the ZND profile into
the computational domain, but the solution is not really interpolated
to the boundary in the sense suggested by your e-mail. What happens
is that the last point in the profile is taken as the piston-state
for the overdriven detonation. And the piston-state is
prescribed on the western boundary and written to all
the mesh cells from the western edge of the Domain to the
back of the ZND wave.

> boundary when the problem is setup, but does the solution at this
> boundary remain constant throughout the simulation?  If I am passing a

In this particular problem the answer is yes.

> ZND wave over an object close to the western bounday, should I specify
> an extrapolative boundary instead if I do not want to have any
> reflections from the western boundary affect my solution?

As a first effort, I would probably position the object far
enough from the western boundary such that the reflected wave
does not reach the boundary during the duration of the simulation.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian  
View profile
 More options Jun 12, 4:31 pm
From: Brian <maxwellbr...@yahoo.ca>
Date: Thu, 12 Jun 2008 13:31:26 -0700 (PDT)
Local: Thurs, Jun 12 2008 4:31 pm
Subject: Re: boundary condition for pulsate problem

On Jun 10, 3:32 pm, James Quirk <j...@galcit.caltech.edu> wrote:

Thanks.

I also have another question, this time regarding how Amrita treats
the Znd waves.
I wanted to make the initial ZND profile larger or smaller than 1 unit
on the coarse grid.  I found that when I initialize the flow field
after running Compute ZND with
               Xd     ::= X[]-$Xd
               RM       ::= interp($znd.RHO,Xd[])
               UM       ::= interp($znd.U  ,Xd[])
               PM       ::= interp($znd.P  ,Xd[])
               ZM       ::= interp($znd.Z  ,Xd[])

if I multiply Xd[] by some factor, it stretches the initial profile of
the ZND wave.  For example:

               Xd     ::= X[]-$Xd
               RM       ::= interp($znd.RHO,0.25*Xd[])
               UM       ::= interp($znd.U  ,0.25*Xd[])
               PM       ::= interp($znd.P  ,0.25*Xd[])
               ZM       ::= interp($znd.Z  ,0.25*Xd[])
This will make the half reaction length equal to 4 units instead of
one.  However, after the simulation runs for some time (without an
obstruction), the half reaction length reduces in size.  Should it not
stay as 4 units?  Is there a better way to stretch the initial znd
profile?

Thanks,

Brian


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Quirk  
View profile
 More options Jun 12, 5:22 pm
From: James Quirk <j...@galcit.caltech.edu>
Date: Thu, 12 Jun 2008 14:22:48 -0700 (PDT)
Local: Thurs, Jun 12 2008 5:22 pm
Subject: Re: boundary condition for pulsate problem
Brian,

No. The width of the reaction zone is fixed by the rate contstant Kz
(assuming you're using the 1-step Arrenhius model) and has nothing
to do with the Xd[] mapping. What you did was to stretch, artificially,
 the ZND profile for your initial conditions, but when
the wave is propagated it will revert under its own steam to the
width supported by the reaction model.

I'm not fully sure what you're wanting to do. Are you wanting
the coarsest grid to have four times the resolution? Or are you
wanting to change the non-dimensionalization, such that the
half-reaction length is 4 instead of one? The former you can
do by employing 4*Npts for the number of mesh points on the finest mesh.
The latter you can do by rescaling Kz.

> profile?

> Thanks,

> Brian

James

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian  
View profile
 More options Jun 12, 7:12 pm
From: Brian <maxwellbr...@yahoo.ca>
Date: Thu, 12 Jun 2008 16:12:21 -0700 (PDT)
Local: Thurs, Jun 12 2008 7:12 pm
Subject: Re: boundary condition for pulsate problem
What I am trying to do is the latter of the two.  Where do I find Kz
for rescaling?  I looked in ComputeZndProfile.amr but can only find K,
ki, kb, and kc.

Thanks for your help,

Brian

On Jun 12, 5:22 pm, James Quirk <j...@galcit.caltech.edu> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian  
View profile
 More options Jun 12, 7:18 pm
From: Brian <maxwellbr...@yahoo.ca>
Date: Thu, 12 Jun 2008 16:18:48 -0700 (PDT)
Local: Thurs, Jun 12 2008 7:18 pm
Subject: Re: boundary condition for pulsate problem
also, in ReactiveEulerEquations.amr there is a variable K (the pre-
exponential factor set to 1)  -- however I still cannot find Kz.

Brian

On Jun 12, 7:12 pm, Brian <maxwellbr...@yahoo.ca> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Quirk  
View profile
 More options Jun 12, 7:32 pm
From: James Quirk <j...@galcit.caltech.edu>
Date: Thu, 12 Jun 2008 16:32:08 -0700 (PDT)
Local: Thurs, Jun 12 2008 7:32 pm
Subject: Re: boundary condition for pulsate problem
Brian,

On Thu, 12 Jun 2008, Brian wrote:

> What I am trying to do is the latter of the two.  Where do I find Kz

I meant K for the 1-step Arrenhius, and not Kz, sorry for the confusion.
But why do you want to change it? All you're doing by changing K
is changing the effective non-dimensionalization used for time,
you're not actually changing the ZND wave's behaviour and so
the results will effectively be the same.

James


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian  
View profile
 More options Jun 12, 7:59 pm
From: Brian <maxwellbr...@yahoo.ca>
Date: Thu, 12 Jun 2008 16:59:16 -0700 (PDT)
Local: Thurs, Jun 12 2008 7:59 pm
Subject: Re: boundary condition for pulsate problem
James,

I am trying to have the half reaction length of the detonation wave
cover about half of the computational domain without compromising the
number of course grids.  Is there a way to accomplish this?

Thanks,

Brian

On Jun 12, 7:32 pm, James Quirk <j...@galcit.caltech.edu> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Quirk  
View profile
 More options Jun 12, 8:21 pm
From: James Quirk <j...@galcit.caltech.edu>
Date: Thu, 12 Jun 2008 17:21:07 -0700 (PDT)
Local: Thurs, Jun 12 2008 8:21 pm
Subject: Re: boundary condition for pulsate problem
Brian,

> James,

> I am trying to have the half reaction length of the detonation wave
> cover about half of the computational domain without compromising the
> number of course grids.  Is there a way to accomplish this?

All you need do is to specify the lscale for the coarsest grid, G0,
as opposed to the finest grid, G$lmax or g0. Thus if your coarse grid
is IM cells wide you could say:

lscale 2/$IM

But again I'm not sure why you would want the computational
domain to cover such a small spatial extent.

James


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gary Sharpe  
View profile
 More options Jun 13, 4:58 am
From: Gary Sharpe <men...@leeds.ac.uk>
Date: Fri, 13 Jun 2008 01:58:04 -0700 (PDT)
Local: Fri, Jun 13 2008 4:58 am
Subject: Re: boundary condition for pulsate problem
Brian,
I think from your emails you are somewhat confused about the physics
of the problem and the numerical set up, and I am with James
that there is no reason for doing things the way you seem to want to
do
(and good reasosn why you don't want to do this).

For the pulsate problem, there is only one intrinsic length scale, the
half-reaction
length. In terms of numerics it is the number of grid points per half-
reaction
length within the reaction zone which is important.

Changing K just changes the reaction zone length scale, but there is
no reason to do this - and I would advise against it, as it will be
hard
for you to compare results directly with previous calculations, and it
will be more difficult to determine how many points in the reaction
zone there are in a straightforward manner.

Lets keep the half-reaction length as unity. For clarity can you  tell
us precisely what it is you after trying to do in terms of
(i) how many grid points per half-reaction on the finest grid
(ii) how many points per-half reaction length you want on the coarsest
grid
(iii) what the length of the domain you want is
All this is straightfowardly controlled by setting
Npts
lmax
rI
im
parameters.

PS if you have "the half reaction length of the detonation wave
cover about half of the computational domain"
the detonation will quickly exit the right boundary. Why would you
want
to do this? Again, given a coarse grid resolution, you can have the
domain
as long as you want - why would you only want the domain length
to be 2*half-reaction length?

Best Wishes
Gary

On Jun 13, 1:21 am, James Quirk <j...@galcit.caltech.edu> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.