Arun,

Another way to do this is to assign various parts of the domain to different
blocks, and write out the block id into the place of the UCD file that
usually contains the material id.  I do this using the python interface to
cubit; it involves editing the UCD export script found at various places on
the web.  Check out the python interface manual that comes with cubit - it
is fairly complete and usually useful.  Also, emailing their support usually
gets a quick response.

Jon Pitt



On Mon, May 3, 2010 at 7:56 PM, arun jaganathan <[email protected]> wrote:

> Hi Michael,
>
> Thanks for the suggestions. I will give it a try.
>
> Arun.
>
>
> On Mon, May 3, 2010 at 6:28 PM, Michael Rapson <[email protected]>wrote:
>
>> Hi there Arun,
>>
>> I have made a mesh with multiple material ids in Cubit. It is fairly
>> clumsy in that it basically assigns each new part a new material id. I
>> basically made a mesh that consisted of about 3 rectangles joined
>> together, and as each rectangle is added Cubit give it the next
>> available integer as a part number. When the journal file is played,
>> the Cubit part numbers become the material id.
>>
>> Since I wanted all parts to be either material id 0 or 2 I simply
>> opened the file in a text editor and pasted all into an OpenOffice
>> spreadsheet. I am working in two dimensions and the material ids are
>> the numbers in the second column for the objects marked quad. (You
>> need to scroll past the node locations at the beginning.) In the
>> spreadsheet program it is easy to substitute the material ids from
>> Cubit with the desired material ids.
>>
>> So essentially:
>> In Cubit make parts you want to have separate material ids separately
>> and then edit them to get exactly what you want.
>>
>> Hope this helps,
>> Michael
>>
>> On Tue, May 4, 2010 at 1:16 AM, arun jaganathan <[email protected]>
>> wrote:
>> > Hi,
>> >
>> > I am new to deal. I managed to import Cubit grid into deal using the
>> python
>> > code.
>> >
>> > I would like to convert Cubit mesh with multiple materials into UCD but
>> the
>> > python code provided in the wiki page do not include transfer of
>> multiple
>> > material ids from Cubit to UCD yet.
>> >
>> > Documentation talks about a program written by Jean-Paul Pelteret to
>> convert
>> > Cubit ABAQUS files into UCD which can handle multiple material ids. Can
>> > anyone give me link to that program ?
>> >
>> > Thanks !
>> >
>> > Arun.
>> >
>> >
>> >
>> > _______________________________________________
>> > dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
>> >
>> >
>> _______________________________________________
>> dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
>>
>
>
> _______________________________________________
> dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
>
>
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to