CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   If there are some codes can let every mesh read the transproperties? (https://www.cfd-online.com/Forums/openfoam-programming-development/125463-if-there-some-codes-can-let-every-mesh-read-transproperties.html)

salame October 26, 2013 03:38

If there are some codes can let every mesh read the transproperties?
 
Hi, Formers:
In my case, i want every mesh can read the file like transproperties, actually viscoelasticproperties , the viscoelasticproperties file includes some scalar quantities which describe the properties of melt, but unequal in every mesh because different temperature. That is my idea about my case, is that possible and how can i get that?

Best regards!
salame

ngj November 3, 2013 13:53

Hi Salame,

With multiple meshes, you can always use the

Code:

const dictionary& otherMeshTransportProperties =
    mesh1.thisDb().parent().subRegistry(<nameMesh0>)
    .lookupObject<IOdictionary>("transportProperties");

command inside your code. This allows you to go back to the data base of other meshes.

Kind regards

Niels

salame November 4, 2013 02:30

Thank u! Niels, i will have a try !:)


All times are GMT -4. The time now is 08:47.