File cahnhill.h

RCS Header: /cvsroot/rheoplast/cahnhill.h,v 1.9 2006/02/13 05:32:23 wanida Exp

The typedefs and prototypes for Cahn-Hilliard species transport.


Included Files


Preprocessor definitions

#define CAHNHILL_H

#define CAHNHILL_HELP "Cahn-Hilliard species transport is a basic staple of phase field modeling.\nTo use it, add option:\n -with-cahnhill\nand control it with the properties:\n -ch_intwidth <epsilon> interface thickness/dx [3.0]\n -ch_surftens <sigma> interface energy [1.0]\n -ch_mobility <kappa> mobility [epsilon^2]\nOne can also use a polymer solution model by selecting\n -ch_polymer and setting properties:\n -ch_polymer_chi <chi> interaction parameter [0.68]\n -ch_polymer_m <m> extent of polymerization [64.0]\nThe default initial condition is a centered square. If -symmetry_x and\n-symmetry_y are specified, this is a square centered at the origin. An\nalternate initial condition with a square (cube) centered on the middle of\nthe x-axis can be used (automatically turning on all symmetries) by\nspecifying:\n -ch_particles\nOr one can specify a two-layer system in the y-direction using:\n -ch_layers <thickness>\nwhere thickness is the fraction in the bottom C=1 layer, or\n -ch_trilayer\nfor a C=1, C=0, C=1 three-layer initial condition.\nOne can also use a random initial distribution to simulate spinodal\ndecomposition with:\n -ch_random_center <center> center of random distribution (required)\n -ch_random_fluct <fluct> half-width of uniform distribution [0.01]\n\n"


Typedef AppCtx

typedef void AppCtx

Typedef chparm

Structure typedef for Cahn-Hilliard species transport.

typedef struct {...} chparm

struct  
   {  
      PetscTruth polymer_solution;  
      PetscScalar width;  
      PetscScalar mobility;  
      PetscScalar alpha;  
      PetscScalar beta;  
      PetscScalar surftens;  
      PetscScalar intwidth;  
      PetscScalar Pe;  
      PetscScalar chi;  
      PetscScalar m;  
      int Cvar;  
      int muvar;  
   }