[FLASH-USERS] Turning advection off for LaserSlab

Hansen, Eddie ehansen at pas.rochester.edu
Mon Dec 30 13:44:51 EST 2024


Hi Zahid,

You could try using BDRY. In the LaserSlab Config file, add:
VARIABLE BDRY

Then you can use it accordingly in a subroutine such as Simulation_adjustEvolution. Cells with bdry < 0 will be treated as fluid like normal, and cells with bdry > 0 will be treated like “solids”. Material from solid cells won’t advect and their faces will be treated like reflecting boundaries for neighboring fluid cells.

Set the value like you would any other variable:
U(BDRY_VAR,I,j,k) = -1.0   ! fluid
U(BDRY_VAR,I,j,k) = 1.0   ! solid

You can try using +/- 1.0 based on a temperature threshold.

--
Eddie Hansen
Applications Group Leader
Flash Center for Computational Science


From: flash-users <flash-users-bounces at flash.rochester.edu> on behalf of Shah, Zahid Hussain <shah858 at purdue.edu>
Date: Friday, December 27, 2024 at 7:52 PM
To: flash-users at flash.rochester.edu <flash-users at flash.rochester.edu>
Subject: [FLASH-USERS] Turning advection off for LaserSlab
Hello Flash users,

I am using LaserSlab to simulate laser ablation process.

How can I turn the advection off for target region with a temperature lower than  threshold (any arbitrary value)?

Right now, I am just doing folowing in the file hy_uhd_unsplitUpdate.F90

    where (U(TELE_VAR,:,:,:) .le. 300.0 .and. U(TARG_SPEC,:,:,:) .ge. U(CHAM_SPEC,:,:,:))
        U(VELX_VAR,:,:,:) = 0.0
        U(VELY_VAR,:,:,:) = 0.0
        U(VELZ_VAR,:,:,:) = 0.0
    end where

But there is still significant advection of target into the chamber. I assume, this is due to some kind of (numerical) diffusion. Is there is any better way to turn off the advection for target region with a temperature lower than threshold?

Other way could be to adjust EOS, but I want to try turning off the advection first.

Thank you,

Zahid Hussain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20241230/ec42d604/attachment.htm>


More information about the flash-users mailing list