[Gmsh] Plugin application on multi-mesh views

Christophe Geuzaine cgeuzaine at uliege.be
Thu Aug 23 15:59:31 CEST 2018


Indeed, Plugin(MathEval) cannot currently handle multi-mesh views. For the calculation you want to perform, maybe Plugin(ModifyComponents) is sufficient? (If not, don't hesitate to dig into Plugin(MathEval) and propose some patches to make it more general.)

Christophe


> On 23 Aug 2018, at 08:28, Venkata Raghunath Rachabattuni <motor at ieee.org> wrote:
> 
> Hello Gmsh community, 
> 
> I was trying to apply the matheval plugin on my pos data and encountered the error that says I can't apply matheval plugin to multi-mesh views. When I searched in the source, hasMultipleMeshes() triggers this, which inturn is triggered by a comparison with Gmodel type pointer m and the getModel() in the file PViewDataGModel.cpp. I could not go beyond to investigate. 
> 
> What I could not understand is, why do the model's obtained from getModel () for different timesteps have to be identical. (My model involves rotation of the mesh, if that matters)
> 
> I have multiple physical regions and multiple time steps in my model. I intend to calculate dB/dt for reach element and calculate few more parameters using that. I have attached my model and the GetDP pro files so that you may replicate the problem.
> 
> I am attaching a template model's files along with this email. Please open the motor_pro with gmsh to run. myMotor_pro is the solver file for GetDP, motor_geo is the top level geometry file and motor2_geo is the detailed geometry file. I replaced the dots in the file name to _ avoid hyperlinks.
> The model files with without any problem with the onelab for Windows 64 ( including complex numbers support for GetDP).
> 
> The model attached is for a surface mounted pm based bldc motor in outer rotor configuration. It is set to run for one full electrical revolution in steps of 1 deg mechanical(6 degree electrical) in a total of 60 steps.
> 
> Once the run is complete, please try to apply Matheval plugin on view 2. I used a simple expression v0 and everything else is set to default.
> 
> Thanks for going through the files and possible instructions.
> 
> Best Regards
> 
> RaNa
> 
> https://motorrlib.gitlab.io
> 
> <motor2.geo><motor.pro><myMotor.pro><motor.geo>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info




More information about the gmsh mailing list