Ansys Optics Help Center home page
Products
  • Ansys Optics
  • Downloads
  • What's new
  • Ansys Help
Solutions
  • Lumerical
  • Zemax
  • Speos
Learn
  • Ansys Innovation Courses (AIC)
  • Ansys Learning Hub (ALH)
  • Webinars
  • On-Demand Webinars
  • White Papers
Get Help
  • Welcome Guide
  • Ansys Learning Forum (ALF)
  • Lumerical Ideas Exchange (IX)
  • Ansys Support (ACSS)
  • How to Register for Support
Evaluate for Free
  • Lumerical
  • Zemax
  • Speos
  1. Ansys Optics
  2. Scripting Language
  3. Commands

TOP

setdevice – Script command

FDTD

Sets the type of device used to run the simulation in the FDTD Resource Selection Group. This command can only be used if there is an FDTD simulation region present.

Syntax

Description

setdevice(“device_type”);

Sets the type of device used to run the simulation, via device_type:

  • device_type: type of device, can be “CPU” or “GPU”

See Also

addresource, setresource, deleteresource, getresource, run, getdevice

Associated files

Related articles

  • Ansys Lumerical FDTD™ Modern User Interface
  • getdevice – Script command
  • gpuspecs – Script command
  • getresource - Script command
  • Lumerical scripting language - Alphabetical list

Products

  • Ansys Optics
  • Downloads
  • What's new
  • Ansys Help

Solutions

  • Lumerical
  • Zemax
  • Speos

Learn

  • Ansys Innovation Courses
  • Ansys Learning Hub
  • Webinars
  • On-Demand Webinars
  • White Papers

Get Help

  • Ansys Learning Forum
  • Lumerical Ideas Exchange
  • Ansys Support
  • How to Register for Support

Evaluate for Free

  • Lumerical
  • Zemax
  • Speos
Hear the Latest from Ansys

Copyright 2025 Ansys Canada Ltd.


Ansys
  • Terms of Service
  • Cookie Policy
  • Privacy Policy
  • Legal Notices