Plotting Shielding Effectiveness with FEMLAB: Newbie Questions

  • Thread starter Thread starter sanshyme
  • Start date Start date
  • Tags Tags
    Graphs
Click For Summary

Discussion Overview

The discussion revolves around using FEMLAB to plot shielding effectiveness of magnetic materials, with participants asking and answering questions related to the software's functionalities, including plotting, saving, and opening models, as well as specific coding queries related to magnetic field calculations.

Discussion Character

  • Technical explanation
  • Homework-related
  • Exploratory

Main Points Raised

  • One participant expresses challenges with plotting current in a quasi-state in the EM model, plotting graphs, saving models in .fl format, and opening saved models.
  • Another participant provides guidance on accessing post-processing options for plotting and saving models, clarifying that .fl is the default format for saving models.
  • A participant inquires about generating a cylindrical current-carrying conductor and seeks help with MATLAB code to obtain magnetic field values at specific coordinates.
  • There is a discussion about the dimensionality of FEMLAB, with one participant noting that it is dimensionless and relies on user-defined units for geometry and material properties.
  • Further clarification is sought on how to correctly use the 'postinterp' function to get the magnetic field at a specified point.
  • Another participant confirms the approach to obtaining the B-field at a specific point and offers to assist with debugging if errors arise.

Areas of Agreement / Disagreement

Participants generally agree on the functionalities of FEMLAB and the use of MATLAB for advanced modeling, but there are unresolved questions regarding specific coding implementations and the dimensionality of the software.

Contextual Notes

Some assumptions about the software's functionalities and coding practices remain unverified, and there are unresolved details regarding the exact nature of the units used in FEMLAB.

sanshyme
Messages
4
Reaction score
0
hi i am new to FEMlab and have to plot sielding effectiveness of magnetic materials using the software.

but currently i have the following problems
1. plot current in quasi state in EM model
2. plot graphs
3. save my models in FEMLAB in .fl format
4. open saved models in .fl format

do i need a mathlab to use my FEMlab?

thanks!
 
Computer science news on Phys.org
Hi Sanshyme, welcome to PF !

Great that you're getting to use one of the best fea software around.

1. Go to the post-processing mode, open the post-processing options box, and choose the variable you want to plot and what type of a plot you want.
2. If you're looking to plot model related properties, results or so that can all be done as above, under post-processing you've domain and cross section plots to make 'graph' plots.
3. Hmmm, the *.fl ougth to be the default model save format ... so just saving a model file via file - save as ougth to go about in this format ?
4. Likewise, open under file - open or then set the model root path in the opening window under user models.

No, you don't need matlab, but linking femlab to MATLAB can help in advanced model customization, data transfer etc. between these 2 softwares.
 
hi hi all.. i got more questions on femlab. first thanks to PerenniaII!
i am currently generating a cylindrical current carrying conductor

Center at the origin; Radius: 0.01m; Initial Az = 100

i exported the fem structure to the MATLAB and uses the following codes



[x,y]=meshgrid(0.01:0.001:0.075,0);

p=[x(:)';y(:)'];

B =postinterp(fem,'normB_qa',p)



now, suppose i would like to get the value of B at x=0.75 and y=0, what should i write? thanks!

by the way is the axes of femlab in metres?! thanks!
 
... Femlab is as most codes dimensionless, it has libraries based on a certain set of units but essentially you define the system of units when inputting geometry, material properties etc.

With respect to getting results at arbitrary points I'd say in most cases you can use 'postinterp' for that as well, it accepts points as input.
 
hi ...
so am i right to say that if i want to get the Bfield at point x=0.75 and y=0,
i'll write

x,y]=meshgrid(0.75,0);

p=[x(:)';y(:)'];

B =postinterp(fem,'normB_qa',p) ??
thanks!
 
Looks good, if you got the application mode vars right, if you get errors we can try to debug what's going wrong.
 

Similar threads

Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
5
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 27 ·
Replies
27
Views
16K
  • · Replies 10 ·
Replies
10
Views
2K