CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

If there are some codes can let every mesh read the transproperties?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ngj

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2013, 03:38
Post If there are some codes can let every mesh read the transproperties?
  #1
New Member
 
salame ama
Join Date: Dec 2012
Posts: 28
Rep Power: 3
salame is on a distinguished road
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
salame is offline   Reply With Quote

Old   November 3, 2013, 13:53
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,541
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
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
sylvester likes this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   November 4, 2013, 02:30
Thumbs up
  #3
New Member
 
salame ama
Join Date: Dec 2012
Posts: 28
Rep Power: 3
salame is on a distinguished road
Thank u! Niels, i will have a try !
salame is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 39 June 5, 2013 19:02
Cannot read a Spider mesh into Foam evrikon OpenFOAM Meshing & Mesh Conversion 1 March 14, 2012 11:13
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 03:52
Converting Starccm+ mesh Ladnam OpenFOAM 0 September 14, 2011 06:30


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