ghostfold_mpicomm

Module

Description

$Id$

This module folds ghost zones for a multiple processor run.

The module adds the value of f or df in the first ghost zone to the first physical point at the opposite side of the grid. This is useful for example for letting particles assign drag force to the ghost zones and then adding the total assigned drag force back into the physical domain over the periodic boundaries.

Quick access

Variables:

yshift_block, yshift_block_bspline, yshift_block_fft, yshift_ghost

Routines:

fold_df(), fold_df_3points(), fold_f(), reverse_fold_df_3points(), reverse_fold_f_3points()

Needed modules

Variables

  • ghostfold/yshift_block [private]
  • ghostfold/yshift_block_bspline [private]
  • ghostfold/yshift_block_fft [private]
  • ghostfold/yshift_ghost [private]

Subroutines and functions

subroutine  ghostfold/fold_df(df, ivar1, ivar2)

Fold first ghost zone of df into main part of df.

20-may-2006/anders: coded

Parameters:
  • df (mx,my,mz,mvar) [real]

  • ivar1 [integer]

  • ivar2 [integer]

Call to:

fourier_shift_yz_y(), bspline_precondition(), ludcmp(), bspline_interpolation()

subroutine  ghostfold/fold_f(f, ivar1, ivar2)

Fold first ghost zone of f into main part of f.

20-may-2006/anders: coded

Parameters:
Call to:

fourier_shift_yz_y(), bspline_precondition(), ludcmp(), bspline_interpolation()

subroutine  ghostfold/fold_df_3points(df, ivar1, ivar2)

Folds the ghost zones of df into main part of df. Used for particles runs where the gaussian box approach is used, as this influences grid points up to 3 nodes away from the particle

20-may-2006/anders: coded 11-jan-2015/jonas : adapted for 3 node thick folded zones

Parameters:
  • df (mx,my,mz,mvar) [real]

  • ivar1 [integer]

  • ivar2 [integer]

Call to:

fourier_shift_yz_y(), bspline_precondition(), ludcmp(), bspline_interpolation()

subroutine  ghostfold/reverse_fold_f_3points(f, ivar1, ivar2)

Copies the boundary points (l2i:l2) into the ghost zones of the neighbouring node Used for reactive particle runs particle-fluid transfer is diffused before added to the df-array,

20-may-2006/anders: coded 11-jan-2015/jonas : adapted for 3 node thick folded zones 22-aug-2016/jonas : adapted to reverse

Parameters:
subroutine  ghostfold/reverse_fold_df_3points(f, ivar1, ivar2)

Copies the boundary points (l2i:l2) into the ghost zones of the neighbouring node Used for reactive particle runs particle-fluid transfer is diffused before added to the df-array,

20-may-2006/anders: coded 11-jan-2015/jonas : adapted for 3 node thick folded zones 22-aug-2016/jonas : adapted to reverse

Parameters:
  • f (mx,my,mz,mvar) [real]

  • ivar1 [integer]

  • ivar2 [integer]