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

Modifying Solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2019, 06:11
Default Modifying Solver
  #1
Member
 
Sean Gorry
Join Date: Feb 2018
Posts: 48
Rep Power: 8
Sean95 is on a distinguished road
Hi all,

I'm using a dynamic mesh solver created by a forum user. Currently its reads a patch name from the dynamicMeshDict and applies a velocity and layer addition to that patch. I'm hoping to modify it so that the LAR takes place at a specified faceZone within the fluid domain (see picture). I think that it should be fairly straight forward to do but my programming skills are the best. Any help would be great, thanks.
Attached Images
File Type: png LAR.png (6.4 KB, 13 views)
Attached Files
File Type: zip linearMotionLayersFvMesh-master.zip (13.1 KB, 3 views)
Sean95 is offline   Reply With Quote

Old   March 27, 2019, 09:03
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
It is not clear what you want to do here. If you are adding the cells inside the mesh what should the other cells do? stay the same? stretch? Within the original solver only the points on the piston face have to move. All other points are stationary. Only the first layer points change by LAR. In your case the internal points on atleast one side have to be moved. And you need to programm that movement.
Bloerb is offline   Reply With Quote

Old   March 27, 2019, 10:30
Default
  #3
Member
 
Sean Gorry
Join Date: Feb 2018
Posts: 48
Rep Power: 8
Sean95 is on a distinguished road
So I want the cells in region 1 to remain the same throughout the simulation time. This is because of the inflation layers (blue) around the creviced piston. Region 1 would move to the right, and the cells to the right of the faceZone (region 2) would be compressed and then removed. This would then continue, as the volume of region 3 gets reduced.

Basically I want the cells in the uniform part of the mesh to be compressed and removed instead of boundary layers at the piston crown. The velocity would still be specified at the piston, but the removal of cells would occur at the faceZone.
Attached Images
File Type: jpg 1.jpg (51.1 KB, 12 views)
Sean95 is offline   Reply With Quote

Old   April 10, 2019, 17:22
Default
  #4
Member
 
Sean Gorry
Join Date: Feb 2018
Posts: 48
Rep Power: 8
Sean95 is on a distinguished road
Any thoughts?

I'm currently also looking at solution mapping
Sean95 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
Modifying solver for LES simulation syavash OpenFOAM Programming & Development 5 August 16, 2015 06:55
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Divergence problem Smaras FLUENT 13 February 21, 2013 05:03
3d vof Smaras FLUENT 2 February 19, 2013 06:58
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 10:22.