0
I Use This!
Activity Not Available

News

Analyzed about 1 year ago. based on code collected over 2 years ago.
Posted almost 5 years ago by Robert
Is there a tool in xfemm to remove segments? I see one for removing nodes, but not segments. Based on the code for deletenode_mfemm, it looks like eliminating an entry in the Segments or ArcSegments arrays must be followed by a renumbering of ... [More] elements in order to work properly. Is the code in this file essentially all that is needed to delete segments? Is there any reason this hasn't been broken out into its own function? [Less]
Posted almost 5 years ago by Robert
I wrote an elementary script in the style of other xfemm functions to solve the basic problem for which I started this thread. I've attached the code here for anyone to use. Caveat emptor: 1. I'm no software engineer, and I wrote this on a tight time ... [More] budget. I've only performed the most cursory debugging. 2. Magnetics problems only (although adapting this code for use with the other solvers doesn't seem difficult since they share so much code in common. See init.lua.) 3. The center point and radius... [Less]
Posted about 5 years ago by Robert
I know this is an old thread (as are most of the threads here) but I was about to post about this very same issue myself. I've noticed that there seems to be a significant difference between how FEMM and xfemm treat overlapping segments; in FEMM ... [More] , overlapping segments are automatically merged, deleted, and split in such a way that you need never (or, at least, I never) worry about overlapping segments; the concept was entirely new to me when I started using xfemm. I've been reading through the IABC... [Less]
Posted about 5 years ago by Robert
There's a very useful wizard in FEMM, "Create IABC Open Boundary," which automatically constructs high-order asymptotic boundary conditions using the problem geometry and user inputs. Is this tool available somewhere in xfemm? I tried searching the ... [More] xfemm source directories for "ABC" as well as for one of the idiosyncratic permeability coefficients, but all that returns is init.lua, which I believe is FEMM source. It seems rather straightforward (albeit time-consuming and prone to transcription error)... [Less]
Posted about 5 years ago by Robert
There's a very useful wizard in FEMM, "Create IABC Open Boundary," which automatically constructs high-order asymptotic boundary conditions using the problem geometry and user inputs. Is this tool available somewhere in xfemm? I tried searching the ... [More] xfemm source directories for "ABC" as well as for one of the idiosyncratic permeability coefficients, but all that returns is init.lua, which I believe is FEMM source. It seems rather straightforward (albeit time-consuling and prone to transcription error)... [Less]
Posted about 5 years ago by Robert
Sounds good. Thank you for all of the work that you've put into this project!
Posted about 5 years ago by Richard C
I was listening, if it helps, but unfortunately too busy to help at the moment, and have experience, or access to a mac. At some point I can see if I can merge your changes with the main code.
Posted about 5 years ago by Robert
Well, I got it all to compile. It was a massive pain. I modified several include directives and compilation options as described above (trivial modifications, I suspect) but also commmented out a couple of FPU-related lines (potentially more ... [More] consequential?) since Apple purportedly does not support the setting of FPU flags. I've attached my whole build directory (which includes the binaries) here. I was talking to myself on this forum - perhaps there isn't a lot of Mac interest here - but I thought... [Less]
Posted about 5 years ago by Maxwell McMaxy
Well, I got it all to compile. It was a massive pain. I modified several include directives and compilation options as described above (trivial modifications, I suspect) but also commmented out a couple of FPU-related lines (potentially more ... [More] consequential?) since Apple purportedly does not support the setting of FPU flags. I've attached my whole build directory (which includes the binaries) here. I was talking to myself on this forum - perhaps there isn't a lot of Mac interest here - but I thought... [Less]
Posted about 5 years ago by Robert
Almost forgot to mention that the very first issue I had was with sincos when compiling femmcomplex.cpp: Error using mex /Users/rapmaster/Documents/MATLAB/xfemm_linux64/mfemm/../cfemm/libfemm/liblua/femmcomplex.cpp:629:5: error: use of undeclared ... [More] identifier 'sincos'; did you mean '__sincos'? sincos(x.im, &sin_x, &cos_x); __sincos /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:655:29: note: '__sincos' declared here __header_always_inline void __sincos(double __x, double *__sinp,... [Less]