Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Changing width of boundary region #27

Closed
bendudson opened this issue Aug 3, 2011 · 0 comments
Closed

Changing width of boundary region #27

bendudson opened this issue Aug 3, 2011 · 0 comments

Comments

@bendudson
Copy link
Owner

It's often useful to adjust the width of boundary regions for individual variables. For example it's often useful to damp jparallel near the boundaries. When using shifted grids, boundaries need to be applied at different points for shifted and non-shifted variables.

A mechanism is needed to change the boundary width for each variable on each boundary separately. Probably easiest as a boundary modifier, so in BOUT.inp:

bndry_xin = width(neumann, 5)

would modify a Neumann boundary condition to have a width of 5 on the inner X boundary.

bendudson added a commit that referenced this issue Jun 14, 2013
To change the width of a boundary region, BoundaryWidth modifier
changes the width of a BoundaryRegion before applying the boundary condition,
then changes the width back afterwards.

To use, in BOUT.inp file e.g:

bndry_core = width( neumann , 4 )

would apply a Neumann boundary condition on the last 4 cells, rather than the usual 2.

When combining with other boundary modifiers, should be applied first e.g.

bndry_sol = width( relax( dirichlet ), 3)

would relax the last 3 cells towards zero, whereas

bndry_sol = relax( width( dirichlet, 3) )

would only apply to the usual 2, since relax didn't use the updated width.

Limitations:

1. Because it modifies then restores a globally-used BoundaryRegion,
   this code is not thread safe.

2. Boundary conditions can't be applied across processors, and no checks
   are done that the width asked for fits within a single processor.
bendudson added a commit to boutproject/BOUT that referenced this issue Sep 13, 2015
By default tries to find and enable HDF5 support.
Can be disabled by using  --with-hdf5=no

--with-hdf5 looks for HDF5 executables to get the path (h5cc etc.)
            checks for hdf5.h and libhdf5.a, disabling HDF5 support if not found.

--with-hdf5=/path/to/hdf5  uses given path, searches for hdf5.h and libhdf5.a
                           and exits with an error message if they're not found

This fixes bendudson#27
bendudson added a commit to boutproject/BOUT that referenced this issue Sep 13, 2015
By default tries to find and enable HDF5 support.
Can be disabled by using  --with-hdf5=no

--with-hdf5 looks for HDF5 executables to get the path (h5cc etc.)
            checks for hdf5.h and libhdf5.a, disabling HDF5 support if not found.

--with-hdf5=/path/to/hdf5  uses given path, searches for hdf5.h and libhdf5.a
                           and exits with an error message if they're not found

This fixes bendudson#27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant