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

chtMultiRegionDyMFoam Solver

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 11, 2015, 12:34
Default chtMultiRegionDyMFoam Solver
  #1
New Member
 
Join Date: Nov 2014
Posts: 10
Rep Power: 4
Wirman is on a distinguished road
Hi foamers,

i want to implement a DynamicMesh MultiRegion solver.
First of all: Is this possible to realize?

If i make a dynamicMesh of a region (i.e. moveDynamicMesh -region region0) i can create a mesh in which region 0 is moving (in my case turning) I have coupled boundary conditions for the temperature. But how should i set up the AMI patches?

So i thought i could try different things, but therefor i need the solver. So my aim is to implement the solver.

How can the solver be implemented?
i need to create a dynamicMesh and then i have to recalculate the flux for the fluid regions. So i tried doing this in the same way as in the pimpleDyFoam. It was more try and error but anything, however, i think i'm on the right path.
But now i have a problem.
I include correctPhi.H as in the pimpleDyFoam, and in this file, there are two variables pRefCell and pRefValue. These variables come obviously from the fvOptions. But there is my problem. I include the setRegionFluidFields.H in front of it, and there the fvOptions are defined with
Code:
fv::IOoptionList& fvOptions = fluidFvOptions[i]
But when i compile the solver it says:
Code:
./include/correctPhi.H: error: ´pRefCell´ was not declared in this scope
the same thing with pRefValue.

Additionally i get some errors with the pimple class.
for the line pimple.correctNonOrthogonal() it says
Code:
error: ´const class Foam::dictionary´ has no member named 'correctNonOrthogonal'
So i tried instead of this pimple.lookupOrDefault<int>("nNonOrthogonalCorrect ors", 0) (as it is in the readFluidMultiRegionPIMPLEControls.H) and this does work, but i don't know if this is correct, because i have no idea what this is doing.

so maybe anyone can help, this would be great

greetings
Wirman
Wirman is offline   Reply With Quote

Old   March 12, 2015, 15:24
Default
  #2
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,548
Blog Entries: 6
Rep Power: 27
Tobi will become famous soon enoughTobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
The error with pRef comes not from fvOption ...
The error with pRef is due to the fact that you have not declared this variables

The last error is due to the missing brackets:
Code:
pimple().nonOrt..
I am not sure what you are doing and why you implement nonOrtho, because it should already be implemented…

At least I will mention, that you do not need to recalculate the fluxes because your problem only the solid is moving. Therefore you get no additional convection term (phiMesh). So you do not need the correction step. Only if your fluid domain is rotating than it is necessary.
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials, publications and videos on www.Holzmann-cfd.de
OpenFOAM Beginners should check out the new wiki on wiki.openfoam.com
A list of some active OpenFOAM contributers can be found »here«
A book about the basics of »Mathematics, Numerics, Derivations and OpenFOAM« can be found on www.Holzmann-cfd.de
Tobi is offline   Reply With Quote

Old   March 11, 2016, 05:03
Default
  #3
New Member
 
Ceddi Houdini
Join Date: Nov 2015
Posts: 1
Rep Power: 0
chou is on a distinguished road
Hey Wirman,

I just came across this thread and I'm interested in this topic as well. Did you manage to get any further with your development?

Have you been able to figure out whether this kind of solver is possible?

Thanks in advance

Greetings
Cédric
chou is offline   Reply With Quote

Reply

Tags
chtmultiregion, dym, dynamicmesh

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
Fluent Adjoint Solver? ex10148 FLUENT 15 July 21, 2015 01:13
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Divergence problem Smaras FLUENT 13 February 21, 2013 06:03
3d vof Smaras FLUENT 2 February 19, 2013 07: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 18:18.