hexagon logo

I want to override the following Patran action using PCL fem_create_mesh_curv_1(): $# Warning reported from application Database $# A conflict in ELEMENT ids starting with number 282012 was encountered. $# Ids will continue at 282136.

There is no YES/NO issued otherwise I would add ui_answer_message(13000235, "NO" ). According to PCL reference guide 13000235 is the code corresponding to the warning. How do I override action? PCL is part of a session file used to create a model (Nastran).
  • You can not override the action. If the curve was was already meshed you could specify an override for 2001103, but in this case you are wanting to delete elements that are not from a previous meshing operation on the curve. You should explicitly delete the element numbers you wish to reuse, either before the mesh call or afterwards, you could check the ids created and then do a delete and renumber or take some kind of appropriate action.
    If you are running a session file that was used to make a model and you are running it again then I assume that the meshing commands are now creating different numbers of elements than they did when the original session file was created. This may be deliberate, you have changed the geometry slightly or just unlucky that changes in algorithms/compilers/machine architecture have triggered slightly different math operations. If this is the case and you are happy to accept the change in element numbers then you should change the output IDs you are specifying in the PCL mesh call.
    Typically the PCL call will start like:
    fem_create_mesh_curv_1( "Surface 1.3", 16384, 0.1, "Bar2", "#", "#", "Coord 0", .......
    note the two # entries are the Node and Element output IDs. This will ensure that mesh starts at a number one higher than the highest existing ID and will prevent conflicts.
    I assume that in your case you must be using explicit IDs that cause the conflict.
    Generally using # for the output IDs enables you to mesh without worrying about conflicting IDs and this means changes in the geometry or element size will not prevent the PCL commands from running.
    I hope this might help even though it doesn't give you an override.
    best regards