Hello Bana,
I haven't worked with interFoam solver. In case of multi-region modelling, your case should be straight forward. For 3 solids, you can implement the same default solid model solving heat conduction equation. In fluid region, create your fields, meshes and respective equations. It might be hard in the beginning, but your efforts will pay off. Good luck |
Quote:
I am not using interFoam too. I am dealing with cavitatingFoam as the fluid solver. I know that the solid part of the solver can remain untouched, but for the createFluidFields.H file I have a primary problem with converting one of the dictionaries of createFields.H of cavitatingFoam to ptrList. As you said this conversion for a lot of Models and fields were completely straightforward and I did not have any problem by using analogy. Here is where I am currently stuck: for baratropicCompressibilityModel in createFields.H file of cavitatingFoam we have: PHP Code:
PHP Code:
to incorporate these two in createFluidFields of chtMultiRegionFoam, I need to create something like PtrList<...>thermodynamicPropertiesFluid and then pass it to barotropicCompressibilityModel in forAll loop. clearly the following line produces error: PHP Code:
PHP Code:
Then I think I should add following code to the forAll loop of createFluidFields.H too: PHP Code:
I appreciate it if you or anyone who has a similar experience in dealing with this solver can suggest an idea about this coding problem. **Note: I am using Foam-Extend 4.1. With thanks and appreciation, Bana |
Hi, I have one major thing to comment here.
Quote:
If you pass IOdictionary, OpenFOAM have no clue to access your solver. The reason why you get the error. I hope this first step will get rid of your half of a problem atleast. Thank you |
Quote:
I do not know how to make a PtrList of IOdictionary:( ... |
1 Attachment(s)
Hello Bana,
Sorry I didn't mention clearly. In my case, I have implemented pyrolysis (solid with reaction), so I have used Ptrlist as, Quote:
I'm attaching the snap of my header file here. You may get the clear idea. Hope this is useful. And give such a try too. Thank you |
Quote:
I found the source of error. I didn't pay attention to the line of error! In fact the declaration of PtrList was ok and I needed to change the following in forAll loop: PHP Code:
|
coupling icoFoam (plus energy equation) solver with CHT multiregion
Hello everyone,
I would like to ask about a solver that can couple coFoam (after introducing the energy equation in this solver) and chtMultiRegionFoam, because I want to add a solid part to the studied model. i have some difficulties in compiling , any body have experience about this?? or another way,just add solid region in my base solver??which way is better?? Regards, [/QUOTE] |
Quote:
Thank you |
coupling icoFoam solver with chtMultiRegionFoam
Hello,
I am studying on regenerator which consists of two regions solid and fluid.So, I'm trying to develop new solver which combines two preexisting solvers (icoFoam and chtMultiRegionFoam) for solving a system of equations : Continuity, momentum and energy equations of fluid and solid. if someone could help me i will be grateful. Best Regards |
Hello khaoula,
Let me know how far you struggled to combine two solvers. Have you checked any forum pages related to this and given a try ? If then, kindly update what you have tried and if any error post it here. I believe helping you along from the efforts you made is worth enough. These posts might be helpful to you. https://www.cfd-online.com/Forums/op...terfoam-2.html https://www.cfd-online.com/Forums/op...o-regions.html Feel free to ask ! Thank you |
Hi,
What boundary condition would you use to couple the phases? compressible::turbulentTemperatureCoupledBaffleMix ed[https://www.openfoam.com/documentati...ield_8H.html]? Or something similar to turbulentTemperatureTwoPhaseRadCoupledMixedFvPatch ScalarField.H [https://www.openfoam.com/documentati...Field_8H.html] Best Regards |
All times are GMT -4. The time now is 12:43. |