-
Hey ViennaPS Team, I’ve been working on a simulation involving hole etching using ViennaPS, and I’ve successfully generated a series of simulations. Now, I would like to create an animated GIF that visualizes the etching process as a continuous, time-evolving sequence. Essentially, I want the simulation to be compiled into a GIF that clearly illustrates the progression of the etching process. I have a few questions regarding this:
Any guidance or suggestions on how to approach this would be greatly appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there! ViennaPS doesn’t provide built-in visualization tools, so I again recommend using ParaView for this purpose. ParaView also offers a Python package that allows you to script visualizations in Python. To create an animation for the SF6O2 hole etching example, you can follow these steps:
Here's a code snippet illustrating how the ViennaPS Python script should look: # Initialize the geometry
geometry = vps.Domain()
# Set up the model with your parameters
model = vps.SF6O2Etching()
# Create the Process object
process = vps.Process(geometry, model)
process.setProcessDuration(timeSteps) # Time between intermediate outputs
time = 0
counter = 0
while time < totalProcessDuration:
process.apply() # Run the process for a time step
geometry.saveSurfaceMesh("output/surfaceMesh_" + str(counter) + ".vtp") # Save the surface mesh
time += process.getProcessDuration()
counter += 1 Notes:
|
Beta Was this translation helpful? Give feedback.
-
@tobre1, Thanks for your input. I will try this out. |
Beta Was this translation helpful? Give feedback.
Hi there!
ViennaPS doesn’t provide built-in visualization tools, so I again recommend using ParaView for this purpose. ParaView also offers a Python package that allows you to script visualizations in Python.
To create an animation for the SF6O2 hole etching example, you can follow these steps:
viennaps::Process
object. Set the process duration to the desired time steps for generating output files.saveSurfaceMesh
function. Append an index to each filename so that ParaView can automa…