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

Solving 1D-equation on each patch face

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2014, 06:45
Default Solving 1D-equation on each patch face
  #1
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
I would like to solve a one-dimensional transient heat conduction equation on each patch face of a boundary.
What kind of approach is best suited for this?
1) Extruding each patch face in a new mesh on which the equation is solved, using empty boundaries at the sides?
2) Manually discretizing the equation and write my own solver algorithm?
3) I think I also read in one of the later release notes about ODE-solving capabilities, but I haven't investigated this yet (will do once I find some time).

Does anyone know of a similar use case with a reference implementation that I could use as a template?
chriss85 is offline   Reply With Quote

Old   October 23, 2014, 09:25
Default
  #2
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
I made some progress on this and wanted to share it.

OpenFOAM already contains a very nice tool for creating 1d-extruded meshes from a boundary, called extrudeToRegionMesh. Using this, it is possible to create separate meshes with 1d-extrusions which can be coupled to the primary mesh (see chtMultiRegionFoam as an example).

I haven't done the programming yet, but I'm very confident this will work just like I need it.
chriss85 is offline   Reply With Quote

Old   October 13, 2016, 03:51
Default
  #3
Member
 
Join Date: Mar 2013
Posts: 98
Rep Power: 13
giack is on a distinguished road
Hi Crhiss,

let's see if I understood it properly: with extrudeToRegionMesh it is possible to create a mesh from a boundary, map the variables in the new mesh and run on that a 1D solver. Am I right?

I'm trying to figure out how to solve an implicit equation on a boundary and this method could help.

Regards
giack is offline   Reply With Quote

Old   October 13, 2016, 04:34
Default
  #4
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
It creades a new region containing extruded cells where you can choose if they are 1D for each boundary face or connected to each other IIRC. You can then use this mesh and solve equations on it. It's also possible to couple it using the appropriate boundary conditions. Keep in mind that the coupling is done in a segregrated approach, meaning you need to solve the equations on the meshes separately, possibly in a loop.
chriss85 is offline   Reply With Quote

Old   October 14, 2016, 11:26
Default
  #5
Senior Member
 
Zeppo's Avatar
 
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 21
Zeppo will become famous soon enough
Quote:
Originally Posted by chriss85 View Post
Keep in mind that the coupling is done in a segregrated approach, meaning you need to solve the equations on the meshes separately, possibly in a loop.
Do you know how can I transform them into a coupled system?
Zeppo is offline   Reply With Quote

Old   October 14, 2016, 15:44
Default
  #6
New Member
 
Ehimen
Join Date: Jun 2016
Posts: 12
Rep Power: 9
Elliptic CFD is on a distinguished road
Quote:
Originally Posted by chriss85 View Post
I made some progress on this and wanted to share it.

OpenFOAM already contains a very nice tool for creating 1d-extruded meshes from a boundary, called extrudeToRegionMesh. Using this, it is possible to create separate meshes with 1d-extrusions which can be coupled to the primary mesh (see chtMultiRegionFoam as an example).

I haven't done the programming yet, but I'm very confident this will work just like I need it.
Please, could you give the steps on how this is done. For my project, I want to extrude a mesh from the wall boundary into the fluid region. Hence, a 1D code will be used for the embedded mesh to calculate wall shear stress fields that will feed into the main mesh.

If I can get the extrudeToRegionMesh utility to work properly, I could use it to create embedded meshes for more complex geometries than channel flow
Elliptic CFD is offline   Reply With Quote

Old   October 17, 2016, 05:05
Default
  #7
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
Check the example dictionary in the tools directory (applications/utilities/mesh/generation/extrude/extrudeToRegionMesh) for the possible options you can use with this tool. In the end it will generate a new mesh as a separate region, so your solver will need to be able to work with multiple regions in a case. You will probably also need some kind of mapped boundary condition. On the extruded case you can solve equations in the same way as you would on a single mesh.
chriss85 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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 14:26
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 04:13
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 09:52.