[petsc-users] If DMPLEX can be created from BDF mesh format?

Matthew Knepley knepley at gmail.com
Sat Mar 29 09:09:45 CDT 2025


On Fri, Mar 28, 2025 at 6:46 PM Mark Adams <mfadams at lbl.gov> wrote:

> Hi Cheng,
>
> Sorry for the late reply. I believe we only support reading .msh files in
> DMPlex.
> You can look at src/dm/impls/plex/tests/ex1.c as an example (testing input
> parameters are in a large comment at the bottom of the file).
>

Mark is correct. We do not have support for BDF. It could be written (we
recently added support for Fluent CASE files), but
if you can make GMsh files, that is both simpler and more robust since it
is a better format.

  Thanks,

    Matt


> Mark
>
> On Thu, Mar 27, 2025 at 11:03 AM 程奔 <ctchengben at mail.scut.edu.cn> wrote:
>
>> Hello,
>> Recently I create mesh from MSC Patran and its mesh format is BDF file (
>> attached with a square structure with Unstructured tetrahedral mesh ).
>> So i ask for the help that if *DMPlexCreateFromFile
>> <https://urldefense.us/v3/__https://petsc.org/release/manualpages/DMPlex/DMPlexCreateFromFile/__;!!G_uCfscf7eWS!eOpR8_zNbigCyBZzpOxibsnxolp7Z8om8LrHIIf6E_yxN7VNH7K-bi_Ig5kMK4gMt7pzRfXH3lR6X5Ax89rgYPEtO1yxq2115g$> *
>> can import the BDF file or I should explicitly change the BDF file to
>> the MSH file format.
>>
>>
>> Looking forward to your reply!
>>
>>
>> sinserely,
>> Cheng.
>>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!cW2a80LlgAoyBTqDEWPooxsQ8VQsSeBM1xq-9RIiDjbpmYWFn5SrCZnJd-apEfIX7GijJFL89R7yKmUVcHGX$  <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!cW2a80LlgAoyBTqDEWPooxsQ8VQsSeBM1xq-9RIiDjbpmYWFn5SrCZnJd-apEfIX7GijJFL89R7yKgPZovhk$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250329/53c45ca2/attachment.html>


More information about the petsc-users mailing list