ghostfold_nompicomm

Module

Description

$Id$

This module folds ghost zones for a single 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

Subroutines and functions

subroutine  ghostfold/fold_df(df, ivar1, ivar2)

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

15-may-2006/anders: coded

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

  • ivar1 [integer]

  • ivar2 [integer]

Call to:

fourier_shift_yz_y()

subroutine  ghostfold/fold_f(f, ivar1, ivar2)

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

14-jun-2006/anders: adapted

Parameters:
Call to:

fourier_shift_yz_y()

subroutine  ghostfold/fold_df_3points(df, ivar1, ivar2)

Fold whole ghost zone of df into main part of df. This is used for when the gaussian scheme is used for source term distribution, used when reactive particles interact with the flow 15-may-2006/anders: coded 11-jan-2015/jonas: adapted to fold the whole ghost zone

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

  • ivar1 [integer]

  • ivar2 [integer]

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]