0% found this document useful (0 votes)
61 views16 pages

N Top CL

Uploaded by

hesana9897
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views16 pages

N Top CL

Uploaded by

hesana9897
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

nTop Command Line

(nTopCL)
Customer Success
[email protected]

PROPRIETARY INFORMATION DO NOT SHARE 1


Resources for Today’s Training

Intro to nTop Command Line (nTopCL)

○ Check out nTop Documentation


○ Preparing nTop Notebook for nTopCL
○ nTopCL in Python scripts
○ nTopCL in Matlab scripts

PROPRIETARY INFORMATION DO NOT SHARE 2


nTop Command Line (nTopCL)

● nTopCL is a command line interface that executes


nTop without a graphical user interface (GUI).
● MDO Applications can run design optimization
and analysis of nTop Workflow via nTopCL
Key Capabilities Command Line Access Unlocks
● Scripting
○ Utilize python or other languages to control parameters and
create more intelligent workflows
● Automation
○ Automate computationally heavy processes and generate more
design variations resulting in more optimal solutions with minimal
or no human touch
● Ability to connect to external tools
○ Matlab, Sim tools, modeFRONTIER, PLM, HPC, anything on the
cloud, etc

PROPRIETARY INFORMATION DO NOT SHARE 4


nTopCL Process

Find nTop Workflow Define Input & Output Scale up with nTopCL

Find the nTop workflow that Define your input and output Execute nTopCL from apps or
can solve your problems: variables that will be replaced scripts written in Python,
for each headless execution Matlab, etc.
● Topology Optimization
of your nTop workflow.
● Lattice Generation Use Multidisciplinary Design
● Shelling nTopCL can generate the Optimization (MDO) softwares
input and output templates for for enhanced design
● Meshing
you. optimization and analysis
● AM Build Prep experience.

5
Key Blocks and Learning Outcomes

Creating a Custom Running a Command nTopCL with nTopPy List Processing


Block ● ntop.exe vs. ● numtext(GUI,save, ● Application:
● Defining Inputs ntopcl.exe Inputs,nTopFile) Ranking Lattice
and Outputs ● Running a ● Using ntopcl.py Structures
● Importing a command ● Creating a Json ● Sorting
Custom Block into Template ● Filtering
a workflow ● Running a ● Logic
command with ● Custom Block if
Json

PROPRIETARY INFORMATION DO NOT SHARE 6


Let’s Create a Custom Block

Place the
parameters you
plan to change
in the input.

PROPRIETARY INFORMATION DO NOT SHARE 7


Key Blocks and Learning Outcomes

Creating a Custom Running a Command nTopCL with nTopPy List Processing


Block ● ntop.exe vs. ● numtext(GUI,save, ● Application:
● Defining Inputs ntopcl.exe Inputs,nTopFile) Ranking Lattice
and Outputs ● Running a ● Using ntopcl.py Structures
● Importing a command ● Creating a Json ● Sorting
Custom Block into Template ● Filtering
a workflow ● Running a ● Logic
command with ● Custom Block if
Json

PROPRIETARY INFORMATION DO NOT SHARE 8


Example Command
First, go to the correct directory: cd C:\Users\mandyrosengren\Desktop\Training

ntop.exe -i "C:\Users\mandyrosengren\Desktop\Training" -i 5 -i 15 -i 5 -s box_example.ntop

To open the GUI, use Saves Name of


ntop.exe Inputs in the nTop file the file the file

PROPRIETARY INFORMATION DO NOT SHARE 9


Key Blocks and Learning Outcomes

Creating a Custom Running a Command nTopCL with nTopPy List Processing


Block ● ntop.exe vs. ● numtext(GUI,save, ● Application:
● Defining Inputs ntopcl.exe Inputs,nTopFile) Ranking Lattice
and Outputs ● Running a ● Using ntopcl.py Structures
● Importing a command ● Creating a Json ● Sorting
Custom Block into Template ● Filtering
a workflow ● Running a ● Logic
command with ● Custom Block if
Json

PROPRIETARY INFORMATION DO NOT SHARE 10


nTopPY: Helpful Functions in ntopcl.py
● numtext(GUI,save,Inputs,nTopFile)
○ Runs nTop with GUI and saving, with inputs defined in the script
● jsontemplate(ntopfile)
○ Creates input and output JSON template files
● json(GUI,save,jsonin,jsonout,ntopfile)
○ Runs nTop, without GUI or saving, based on an input from in.json, outputting to out.json

For writing code: Thonny, Spyder or Visual Studio


PROPRIETARY INFORMATION DO NOT SHARE 12
PROPRIETARY INFORMATION DO NOT SHARE 13
PROPRIETARY INFORMATION DO NOT SHARE 14
Key Blocks and Learning Outcomes

Creating a Custom Running a Command nTopCL with nTopPy List Processing


Block ● ntop.exe vs. ● numtext(GUI,save, ● Application:
● Defining Inputs ntopcl.exe Inputs,nTopFile) Ranking Lattice
and Outputs ● Running a ● Using ntopcl.py Structures
● Importing a command ● Creating a Json ● Sorting
Custom Block into Template ● Filtering
a workflow ● Running a ● Logic
command with ● Custom Block if
Json

PROPRIETARY INFORMATION DO NOT SHARE 15


Additional Resources

1. Video: Creating a Custom Block for Lightweighting


2. Video: Package & Reuse Design Processes with Custom Blocks
3. nTop Live: Optimize Lattice Structures for Lightweighting with Design
Automation

4. nTop Live: Select the Right Lattice Structure using Automated


Simulations & Ranking

PROPRIETARY INFORMATION DO NOT SHARE 16

You might also like