Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Defining Geometric Parameters from Imported Grid Data
Posted 2016年7月14日 GMT-4 10:54 8 Replies
Please login with a confirmed email address before reporting spam
I would like to be able to take a grid data file that I have and create a block with width(x) and depth(y) from the x and y values of the data file.
The format of the data file is as such:
%Grid
X values
Y values
%Data
{Data Matrix}
I would also like to add that the X and Y values go from negative to positive and I would like to define the block dimensions in terms of their total ranges.
Any help would be great, thank you!
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
You can create a COMSOL geometry from interpolation functions and parametric surfaces. I suggest that you consult the documentation on these two topics.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Right so I am trying to define the length and width of a regular block that will have a fixed depth of 2mm. I would like to use data that I have to define the length and width of the block but I'm not sure how to do this. Thanks for the reply.
The data file that I would like to use is of the following form: (I would like the range from x_1 to x_n to define the width of this block and the range from y_1 to y_n to define the length.)
%Grid
x1 x2 x3 x4 x5 x6 .......
y1 y2 y3 y4 y5 y6......
%Data
[Data Matrix]
Please login with a confirmed email address before reporting spam
Cheers
Edgar
--
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Please login with a confirmed email address before reporting spam
If I understand correctly you want to do a parametric sweep over geometry variants defined by n x-dimensions and n y-dimensions. If this is correct you don't need a grid file and it doesn't work this way. You can define two parameters, say 'width' and 'height' (don't use x and y!). Set up a parametric sweep and simply put the x and y value lists into the fields for the parameter list. If it is long you can import it from a file.
Cheers
Edgar
--
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Okay, yes this is definitely what I want, the only thing is that I am already importing the data in form of a grid .txt file for another purpose and was hoping I could pull the x and y coordinates out of it at the same time. It sounds like I might need to import two files. Thank you for the help!
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Also, could you please elaborate or point me in the direction of what the file should look like in order to import the x and y values? Thank you.
If anyone could tell me how to get the data into the correct format, it would be greatly appreciated. I've tried over twenty different ways to import these coordinates and then use them in a parametric surface in order to create my 3D rectangle with fixed Z. I tried to follow the example in the thread below, however I kept getting an error message that there weren't columns where expected. At one point it told me that it expected 6 columns... I have no idea why. Thanks.
www.comsol.com/community/forums/general/thread/12982/
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.
Suggested Content
- KNOWLEDGE BASE Selecting Hardware for Clusters
- KNOWLEDGE BASE Resolving Gaps and Intersections in Imported CAD Assemblies
- FORUM geometric problem
- BLOG Generate Custom Magnetic Prospecting Analyses by Designing an App
- KNOWLEDGE BASE Can COMSOL import topological data, meshes and images?