Abstract: RheoPlast is a code framework for phase field solidification modeling with fluid flow and elastic solid behavior using a fluid-structure interactions formulation. It is designed to be modular and flexible, such that one can select on the command line between various phase field energy functions, transport coupling terms, initial and boundary conditions, in addition to the various parameters of the model. It is based on the data management objects and solvers of the PETSc suite, with small additions to aid in timestepping. The package also comes with a simple diffusion code using the RheoPlast timestepping infrastructure.
RheoPlast module 60cahnhill 60chternary 60vortflow 60pressflow 60shearstrain 60vectorphase 60heatcond 60electra Field variables C f2,f3 u,v,w u,v,p gxx,gxy p,q T V Temporary fields µ µ2,µ3 (w) f,e,t,¶f/¶ t seff Cahn-Hill. two-fluid Ö Ö Polym-soln demixing Ö (Ö) Cahn-Hilliard FSI Ö Ö Ö Polycrystal freezing Ö Dendritic freezing Ö Ö Polycrystal FSI Ö Ö Ö Dendrite FSI Ö Ö Ö Ö Cahn-Hill. e-chem Ö (Ö) (Ö) Ö Ternary e-chem, EMR Ö (Ö) (Ö) Ö
Table 1: Example simulations and their usage of present (first three) and future RheoPlast modules.
./cahnhill -nx 21 -ny 21 -dt 1.E-4 -time_factor 1.1 -dt_max 1.E-3To run the oscillating solid simulation, open cahnhill-old.c, uncomment lines 1786-1787 (square initial condition) and comment lines 1801-1804 (to remove the impinging particles initial condition), then run with the same command line as above. To run the oscillating liquid droplet simulation, use this same square initial condition and change the ``6'' on line 104 of cahnhill-old.c to a ``4'' (field variables).
rheoplast -da_grid_x 25 -da_grid_y 25 -width_x 0.00375 -width_y 0.00375 -symmetry_x -symmetry_y -with_cahnhill -ch_surftens 0.03 -with_vortflow -density 1000 -viscosity 0.0004 -ts_dt 0.00002 -ts_dt_max 0.001 -ts_max_steps 1000The corresponding simulation using pressflow is considerably slower:
rheoplast -da_grid_x 25 -da_grid_y 25 -width_x 0.00375 -width_y 0.00375 -symmetry_xmin -symmetry_ymin -boundary_xmax -boundary_ymax -with_cahnhill -ch_surftens 0.03 -with_pressflow -density 1000 -viscosity 0.0004 -ts_dt 0.00002 -ts_dt_max 0.001 -ts_max_steps 1000 -tsstyle implicitUnfortunately, the vortflow module does not interact well with shearstrain, so we replace it with the standard velocity-pressure Navier-Stokes formulation. Again unfortunately, this formulation makes symmetry boundary conditions difficult, so one must include the full geometry in the simulation domain. Running the oscillating solid droplet simulation can then be done with command line:
rheoplast -da_grid_x 50 -da_grid_y 50 -width_x 0.00375 -width_y 0.00375 -with_cahnhill -ch_surftens 0.03 -with_vortflow -density 1000 -viscosity 0.0004 -with_shearstrain -shear_modulus -ts_dt 0.00002 -ts_dt_max 0.001 -ts_max_steps 1000In the future, the module will enable the fluid-structure interactions simulations described by the paper and talks mentioned above.
rheoplast -with_membrane -da_grid_x 150 -da_grid_y 150 -width_x 1 -width_y 1 -explicit_timesteps 4000 -explicit_deltat 2.5e-11 -explicit_monsteps 1000 -ts_max_steps 20000 -ts_dt 1e-7 -monsteps 100 -K_ss 2e-5 -K_pp 2e-5 -mobility_ss 2 -mobility_pp 2 -m_random -m_random_center_phi_s 0.2 -m_random_center_phi_p 0.2 -m_random_fluct 0.005Variations demonstrated the effect of K_ss and K_pp on lengscale using the -K_ss and -K_pp parameters.
rheoplast -with_membrane -da_grid_x 150 -da_grid_y 300 -width_x 1 -width_y 2 -explicit_timesteps 4000 -explicit_deltat 2.5e-11 -explicit_monsteps 1000 -m_layers 0.3 -symmetry_y -ts_max_steps 20000 -ts_dt 1e-7 -monsteps 100 -K_ss 1e-4 -K_pp 1e-4This illustrated the effect of a somewhat different free energy function on membrane morphology, in this case the size and timescale of initial decomposition fluctuations are both larger than for PVDF (below).
rheoplast -with_membrane -da_grid_x 150 -width_x 1 -width_y 2 -da_grid_y 300 -explicit_timesteps 2000 -explicit_deltat 2.5e-11 -explicit_monsteps 1000 -m_layers 0.3 -symmetry_y -K_ss 1e-4 -K_pp 1e-4 -ts_max_steps 20000 -ts_dt 1e-7 -monsteps 100The base case simulations, illustrated effect of initial coagualant bath and polymer solution composition on membrane morphology.
rheoplast -with_membrane -threedee -width_x 0.45 -da_grid_x 90 -width_y 1.0 -da_grid_y 200 -width_z 0.45 -da_grid_z 90 -ts_max_steps 40000 -ts_dt 1e-7 -monsteps 100 -m_layers 0.3 -symmetry_y -explicit_timesteps 2000 -explicit_deltat 1e-11 -explicit_monsteps 400Three-dimensional version of the previous case, illustrates the mechanism of pore formation in the membrane surface.
Get these from Bo!The enhanced polymer mobility at low polymer concentrations has a dramatic effect on membrane morphology.
rheoplast -with_membrane -da_grid_x 150 -width_x 1 -width_y 2 -da_grid_y 300 -explicit_timesteps 4000 -explicit_deltat 2.5e-11 -explicit_monsteps 1000 -m_layers 0.3 -symmetry_y -ts_max_steps 8000 -ts_dt 1e-7 -monsteps 50 -K_ss 1e-4 -K_pp 1e-4 -with_vortflow -Sc 1000 -Fp 1e9 -snes_monitorThis demonstrates the effects of fluid flow on membrane morphology. In particular, the ratio of the Sc and Fp parameters (Schmidt number and force parameter) appears to determine the stability of the membrane top layer.
|
= f(u), |
|
|
| r |
æ ç ç è |
|
+ Ñ·(wu) |
ö ÷ ÷ ø |
+ Ñr× |
æ ç ç è |
|
+ u·Ñu |
ö ÷ ÷ ø |
= hÑ2w + wÑ2h + |
|
æ ç ç è |
|
- |
|
ö ÷ ÷ ø |
+ Ñ×F (16) |
| Ñ×(-Ñ·t) = GÑ×(Ñ·g) = G |
æ ç ç è |
|
+ |
|
- |
|
- |
|
ö ÷ ÷ ø |
. (18) |
|
|
| b=fÑq = - |
|
Ñ p + |
|
Ñ q. |
| A2 = f(f, m) = f (1-f) |
æ ç ç è |
f - |
|
+ m |
ö ÷ ÷ ø |
| A3=- |
é ê ê ë |
|
|
+ |
|
ù ú ú û |
|b|2, |
| A3 = -µ |
æ ç ç è |
l+ |
|
ö ÷ ÷ ø |
fl-1 |
é ê ê ê ê ê ë |
æ ç ç è |
- |
|
|
+ |
|
|
ö ÷ ÷ ø |
|
+ |
æ ç ç è |
- |
|
|
+ |
|
|
ö ÷ ÷ ø |
|
ù ú ú ú ú ú û |
. |
| B = |
|
Ñ · | ( | µ(f)fb | ) | = |
|
é ê ê ë |
|
( | fµ(f)bx | ) | + |
|
( | fµ(f)by | ) |
ù ú ú û |
. |
| y = tan-1 |
æ ç ç è |
|
ö ÷ ÷ ø |
. |
| e = e0 |
é ê ê ê ê ê ë |
1 + ds |
ì ï ï í ï ï î |
2 * |
æ ç ç è |
|
ö ÷ ÷ ø |
|
- 1 |
ü ï ï ý ï ï þ |
ù ú ú ú ú ú û |
, (37) |
This document was translated from LATEX by HEVEA.