0% found this document useful (0 votes)
3 views5 pages

Field Line

This document provides instructions on how to install and use the Fieldline, Fieldline_1pt, and Fieldline_coordPt macros in Flux software. Each macro is designed to create spatial paths along field lines for computing vector quantities, with specific steps for setup and execution. It also details the installation path for macros and the process for loading and running them within the software.

Uploaded by

Cầu Cao
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)
3 views5 pages

Field Line

This document provides instructions on how to install and use the Fieldline, Fieldline_1pt, and Fieldline_coordPt macros in Flux software. Each macro is designed to create spatial paths along field lines for computing vector quantities, with specific steps for setup and execution. It also details the installation path for macros and the process for loading and running them within the software.

Uploaded by

Cầu Cao
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/ 5

Macros

How to use macros: Fieldline, Fieldline_1pt and


Fieldline_coordPt?

Last update 25/03/2013


Version soft Flux V12.1 SP1
Author SG
Reviewers

Introduction This document deals with how to install a macro, and how to use the
Fieldline, Fieldline_1pt and Fieldline_coordPt macros. It will include the
following topics:
• Macro definition
• Install a macro

Macro definition: Fieldline, Fieldline_1pt and Fieldline_coordPt

Goal of the This macro intends to create spatial paths along field lines in order to compute
macro quantity on them. There are three different macros in both 2D and 3D
according to the starting selection of the fieldline. You will have to specify the
following items:
1) For the Fieldline macro :
• Select the lines (2D) or the faces (3D) from which you want to create field
lines paths. It will plot a new spatial path for each node on this support
• Select the quantity you want to follow. It must be a vector quantity (E,
B…)
• Select the step; this will be the discretization of the path.
• Select the maximum length of the path. If the path reaches a region where
the quantity is no longer available (for example E field in a conductor), the
path will stop there.
• Select the first region crossed by the field line. This helps computing the
field in the right region for the first point to start in the good direction.
• Select the name for the paths. For example if the name is
“PATH_LINE_68”, then the paths will be named “PATH_LINE_68_1”,
PATH_LINE_68_2”…

Figure 1 : interface of macro

1
Macros

Goal of the As output, the macro will create:


macro • Spatial paths starting from every node of the starting support. These paths
(continued) are compound paths with straight single paths with the size of the step.
• The macro works in batch mode and launches Point session of
computation. If an error happens, the process may be blocked in the batch.
Sometimes, it will be better to close the Flux window and open again the
project to continue.
2) For the Fieldline_1pt macro :
• Select the points from which you want to create field lines paths. It will
plot a new spatial path for each point on this support
• Select the quantity you want to follow. It must be a vector quantity (E,
B…)
• Select the step; this will be the discretization of the path.
• Select the maximum length of the path. If the path reaches a region where
the quantity is no longer available (for example E field in a conductor), the
path will stop there.
• Select the first region crossed by the field line. This helps computing the
field in the right region for the first point to start in the good direction.

Figure 2 : interface of macro


As output, the macro will create:
• Spatial paths starting from every point. These paths are compound paths
with straight single paths with the size of the step.
• The macro works in batch mode and launches Point session of
computation. If an error happens, the process may be blocked in the batch.
Sometimes, it will be better to close the Flux window and open again the
project to continue.

2
Macros

Goal of the 3) For the Fieldline_coordPt macro :


macro • Select the system of coordinates
(continued) • Select the coordinates from which you want to create field lines
paths. It will plot a new spatial path from these coordinates
• Enter the name for the created path: the path will be name as you
entered it directly. So check that this name is not already used before
launching the macro.
• Select the quantity you want to follow. It must be a vector quantity
(E, B…)
• Select the step; this will be the discretization of the path.
• Select the maximum length of the path. If the path reaches a region
where the quantity is no longer available (for example E field in a
conductor), the path will stop there.
• Select the first region crossed by the field line. This helps computing
the field in the right region for the first point to start in the good
direction.

Figure 3 : interface of macro


As output, the macro will create:
• Spatial path starting from the coordinates. This path is a compound
path with straight single paths with the size of the step.
• The macro works in batch mode and launches Point session of
computation. If an error happens, the process may be blocked in the
batch. Sometimes, it will be better to close the Flux window and
open again the project to continue.

3
Macros

Install a macro

Path Macros delivered with Flux are directly installed in folder :


Installation C:\Program Files\Altair\2020\flux\Extensions\Macros

(If Flux is installed at the path proposed by default C:\Program Files\Altair)

Calling a macro In order to use a macro, you have to follow the next steps:
Step Actions
1 Open Flux
2 Click on [Project] [Macro] [Load], and select the right macro

3 To run a macro, you have to click on [Project] [Macro] [Run]

Then select the macro you want to run.

4
Macros

Macro description

Folder Macros Description


Macros_Fieldline FieldLine.PFM Create spatial paths from nodes of support,
FieldLine_1pt.PFM from points or from coordinates
Subfolders : 2D, FieldLine_coordPt.PFM
3D See description

6 macros

You might also like