CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to associate different material to different parts of the mesh ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2015, 10:15
Default How to associate different material to different parts of the mesh ?
  #1
FGH
New Member
 
Franck HOUSSEN
Join Date: Feb 2015
Posts: 7
Rep Power: 11
FGH is on a distinguished road
How to associate different material to different parts of the mesh ?

I am new to OpenFOAM : I looked in the documentation and also to the tutorials/multiphase/twoPhaseEulerFoam/LES/bubbleColumn example, but, I didn't really understand how and what to do. Does the mesh-material association is supposed to be done at mesh time (by blockMesh) or later (at pre-processing time), and, how is it done ?

I just want to apply "material 1" to a hex block meshed with blockMesh, and, to apply "material 2" (with different Young Modulus from material 1) to another hex block meshed with blockMesh (the 2 hex block share a common face)

Can somebody help me on this ?

Thanks,

FGH
Attached Files
File Type: gz twomat.tar.gz (1.3 KB, 1 views)
FGH is offline   Reply With Quote

Old   February 27, 2015, 10:57
Default
  #2
FGH
New Member
 
Franck HOUSSEN
Join Date: Feb 2015
Posts: 7
Rep Power: 11
FGH is on a distinguished road
After more time looking on this, I realize that I am probably supposed to:
  1. set a initial field (in the 0 directory) for the Young Modulus
  2. write my own system/setFieldDict and run setFields after blockMesh
... But this is still not working : after blockMesh and setFields, I can not see the Young Modulus repartition in Paraview.


If somebody can help, I would appreciate !



Thanks


FGH
FGH is offline   Reply With Quote

Old   February 27, 2015, 11:41
Default
  #3
FGH
New Member
 
Franck HOUSSEN
Join Date: Feb 2015
Posts: 7
Rep Power: 11
FGH is on a distinguished road
OK, so, looking for a solution I came to http://www.openfoam.org/docs/user/damBreak.php. This looks similar in that one has to use setFields.

I use OpenFOAM-2.3.1 (built from source) on Ubuntu14.04 :
  1. I run blockMesh
  2. I run "cp 0/alpha.water.org 0/alpha.water"
  3. I run setFields
  4. I run paraFoam : I do NOT see alpha in paraview, I do NOT getFigure 2.21 from http://www.openfoam.org/docs/user/damBreak.php
What did I miss ?


FGH
FGH is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Has anyone tried convergence speedup by removing inactive parts of a mesh? chriss85 OpenFOAM Running, Solving & CFD 0 December 2, 2014 09:37
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


All times are GMT -4. The time now is 07:38.