FEMLAB-Exporting Data from Random Distribution of Points?

Click For Summary

Discussion Overview

The discussion revolves around exporting and importing data in FEMLAB, particularly focusing on the challenges of exporting displacement data from a random distribution of points and the potential for importing position and displacement data to determine applied strain. The scope includes technical explanations and practical applications related to FEMLAB's data handling capabilities.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant expresses difficulty in exporting displacement data from a regular grid of points and seeks a method to export data from a uniform distribution of random points.
  • Another participant suggests using the export feature in FEMLAB, indicating that it allows for exporting data from subdomains and specifying a regular grid of desired density.
  • A participant inquires about resources for information on FEMLAB's scripting interface, noting that the paper manual lacks detail on data exporting.
  • One participant recalls that an improved export feature was introduced in release 3.2, which enhanced data export capabilities, but they are unsure of online resources for the scripting interface.
  • Another participant discusses the capabilities of the scripting interface, comparing it to MATLAB for data I/O and suggesting that it can be used to compute strain from displacement data.
  • A later reply proposes a straightforward method to import data into "tabular-variables" for direct manipulation within the GUI.

Areas of Agreement / Disagreement

Participants present various methods and tools available in FEMLAB for data exporting and importing, but there is no consensus on the best approach or the availability of resources for the scripting interface. The discussion remains unresolved regarding the optimal solution for the initial problem posed.

Contextual Notes

Participants mention limitations in the available documentation and the potential complexity of using the scripting interface, indicating that further exploration may be necessary to fully utilize FEMLAB's capabilities.

WashU
Messages
6
Reaction score
0
I am by no means an expert with FEM or FEMLAB. I am running some simple 2D axial symmetric models and would like to export displacement data for each of my subdomains. At the moment I am exporting in cooridnate & data form using a regular grid of points. However for my application the regular grid is not ideal and infact presents a problem. Is there a way to instruct FEMLAB to export coordinates & data from a uniform distribution of random points? Can I also make FEMLAB export more data from in areas with a more refined mesh and less data from areas where the mesh is less defined? Any ideas or help would be greatly appreciated!
 
Computer science news on Phys.org
file->export->post processing data should provide you the means you require, for example for subdomains you can use nodal points of a post-processing mesh of what order you wish or then read the coordinates you want output from an external file, or then specify a regular grid of desired density. Defining new output variables and outputting them with desired number of points is a good way as well, and if you use the scripting interface you can do pretty much what you want.
 
Is there a place I can go for information on FEMLAB's scripting interface? I have the FEMLAB manual in paper form but it really doesn't provide a lot of information on data exporting.
 
...if I remember about right the improved export feature was part of release 3.2 and generalized the data export features quite a bit, before it was "somewhat" clumsy. Don't know of any online sources for the scripting interface, the scripting manual is probably the best source, although the Yahoo - Comsol group does from time to time treat problems related to Comsol scripts and the archive may contain some examples.
 
Ok I worked out this problem and now have a new one. Is there any method of importing position and displacement data and having femlab determine the applied strain (essentially working the problem in reverse)?
 
...yeah, the scripting interface provides you pretty much the same abilities for data I/O as matlab, and then you can use whatever operations to the data you see fit (using the set of build-in function for differentiation for example comes handy ... if you read in the data, fix it to spatial domains and work from there you can use the application mode to do the work for you [like computing the strain state from a displacement field]). A more straightforward way can be to import data from file to for example "tabular-variables" and then work on them straight on if you want to work within the GUI.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 24 ·
Replies
24
Views
2K
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
4K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K