|
"Jadav Das" <jadav2008@gmail.com> wrote in message <gg6md2$kq0$1@fred.mathworks.com>...
> Hi all,
> I need your kind help of interfacing Patran with Matlab. I have a finite element model of a deformable object in Patran and I want to apply forces on the surface of the body from Simulink and simultaneously I want to read the deformation, stress etc in Simulink. How can I do that? How do I interface them? Is there any available software for that? Could you please send me code if you have one? Thanks in advance.
>
> Regards
> Jadav
Jadav, as someone else said - it is Nastran you must interface with for load application. You can use Matlab to write load cards (RLOAD,PLOAD,DLOAD) plus tables and put the reference in the case control (don't forget that!). Write out a new dat/bdf (or whatever you call your Natsran model file) and run the calculation.
As for read in data- no you don't need to spend a lot of money on SDT. You can output your stresses, loads etc to a punch, read them direct form an F06 or XDB. Though I'm not sure about the XDB, the punch and F06 output are formatted ASCII and are easily readable in Matlab (thought they can produce BIG files - depends on your output requests).
Personally I favour the OP2 which is binary INT32. The layout is completely described in the DMAP manual. No, I can't give you an m-file. Sorry.
PS- "simultaneously"
Unless you are extracting the mass and stiffness matrices (possible!) you will always need to produce a Nastran calculation.
SDT tools will extract the M,K,B matrices - beware large models - or you can do it with the OP2/F06 - but you will need to include the correct case control commands, or possibly DMAP alter to get that information to output2. Large models will produce a lot of data. I have done it with the tool from Ettiene Balmes for calculating dynamic stiffness matrices - but only with Ansys.
Regards,
S.
|