|
[Sponsors] |
![]() |
![]() |
#1 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 18 ![]() |
Can anybody tell me how to give value for offset, sampleRegion, sampleFace in boundary dictionary for interface.
I have given as following after having a look at multiRegionHeater tutorial-- Code:
solid_to_fluid { type directMappedWall; nFaces 7200; startFace 101160; sampleMode nearestPatchFace; //sampleRegion region0; //samplePatch none; sampleRegion fluid; samplePatch fluid_to_solid; offset (0 0 0); } solid_to_domain2 { type directMappedWall; nFaces 7200; startFace 108360; sampleMode nearestPatchFace; //sampleRegion region0; //samplePatch none; sampleRegion domain2; samplePatch domain2_to_solid; offset (0 0 0); } --> FOAM Warning : From function directMappedPatchBase::calcMapping() const in file directMapped/directMappedPolyPatch/directMappedPatchBase.C at line 451 The actual cell/face centres picked up using offset (0 0 0) are not on a single plane. This might give numerical problems. At patchface (5.426277 5.870002 0.25) the sampled cell/face (5.426277 5.870002 0.25) is not on a plane 2.84493e-15 offset from the patch. You might want to shift your plane offset. Set the debug flag to get a dump of sampled cells. Attempt to cast type zeroGradient to type solidWallMixedTemperatureCoupled#0 Foam::error: ![]() #1 Foam::error::abort() in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so" #2 Foam::Ostream& Foam: ![]() #3 Foam::solidWallMixedTemperatureCoupledFvPatchScala rField::updateCoeffs() in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/chtMultiRegionFoam" #4 Foam::mixedFvPatchField<double>::evaluate(Foam::Ps tream::commsTypes) in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/chtMultiRegionFoam" #5 Foam::mixedEnthalpyFvPatchScalarField::updateCoeff s() in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" #6 Foam::fvMatrix<double>::fvMatrix(Foam::GeometricFi eld<double, Foam::fvPatchField, Foam::volMesh>&, Foam::dimensionSet const&) in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libcompressibleRASModels.so" #7 Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacianUncorrected(Foam::GeometricFi eld<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&) in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so" #8 Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacian(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&) in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so" #9 Foam::fv::laplacianScheme<double, double>::fvmLaplacian(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&) in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so" #10 Foam::tmp<Foam::fvMatrix<double> > Foam::fvm::laplacian<double, double>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::word const&) in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/chtMultiRegionFoam" #11 Foam::tmp<Foam::fvMatrix<double> > Foam::fvm::laplacian<double, double>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&) in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/chtMultiRegionFoam" #12 main in "/home2/cfd/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/chtMultiRegionFoam" #13 __libc_start_main in "/lib64/tls/libc.so.6" #14 _start at ../sysdeps/x86_64/elf/start.S:116 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 18 ![]() |
Hi,
I could able to solve the offset problem, but I am not sure of how it is been solved. I just scaled the geometry which I initially forgot to. Now the case is running, But the new problem I am facing is. 1. Time step became so low to 1e-06, so my simulation taking so much time. 2, I initially tried with air in the thermoPhysicalProperty dictionary. But Actully I want is twith water. I have mention water as following, Code:
thermoType hPsiThermo<pureMixture<constTransport<specieThermo<hConst Thermo<perfectGas>>>>>; mixture water 1 18 4180 0 1.0e-06 7.01; Please provide your help in solving above 2 issues. PS-1: I have searched all the tutorials, In no one water is used as working fluid. PS-2: The problem I am solving is Tube-in-Tube Heat exchange where solid region is sandwiched b/w two fluid region carrying hot and cold water resp. Regards Santhosh.. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 17 ![]() |
This could help you!
http://www.opencfd.co.uk/openfoam/th...calModels.html You have to calculate the time step. It very important for your simulation. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 18 ![]() |
Thanks for the help.
I have already looked at the link you have given. Also I have entered water properties in the sequence as you mentioned in the attached file. But my basic doubt is that can we use the following syntax for water Code:
thermoType hPsiThermo<pureMixture<constTransport<specieThermo<hConst Thermo<perfectGas>>>>>; In the multiRegionFoam source code, only the basicThermo header file is included, thus when I wanted to change the above syntax, I am getting the error suggesting to use above syntax only. My doubt is does above syntax suits for water or not. Can u also elaborate the sentence of "calculation timestep". I am using the feature of auto adjusting time step based on the max Courant number in controlDict dictionary. Is this what you wanted to say. Thanks Santosh... |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Member
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 17 ![]() |
Quote:
The time step depend on cell numbers. It is better to calculated it as show in the userGuide. |
||
![]() |
![]() |
![]() |
![]() |
#6 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 18 ![]() |
I got my doubt much clear now.
In openFOAM the density is calculated as Code:
thermo.rho=psi_*p Code:
perfectgas::psi = 1/RT Now my doubt is that will this calculation of psi is applicable to water or not (with perfect gas assumption)? Also, In my case (water as a working fluid) when I looked at the rho field in time directories written by FOAM, the values are ranging from 0.7-0.8. where as in tutorial case (with air as working fluid) the density is around 10-100. Please hint me in this regard. Do I need to change the solver to take other thermophysical models or present one is OK? Regards Santosh.. |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 18 ![]() |
Also with water being incompressible do I need to bother about calculating rho in the chtMultiRegionFoam solver. ( I mean I can just pull out all the rho terms from the equations)
Regards Santosh.. |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 18 ![]() |
I ran the case with constant density chtMultiRegionFoam. I found following observation along with problem discussion:
Problem: I am solving a tube-in-tube kind of heat exchanger, in which hot water flow inner annulus followed for solid region (copper) and cold water flow in the outer annulus Temp of hot water inlet - 355k & flow rate 0.5m/s Temp of cold water inlet - 283k & flow rate 1m/s My region conventions are: inner fluid region - fluid Solid region - solid Outer fluid region - domain2 Observations/Problems 1. The flow and temperature profiles are very well in both inner and outer fluid regions, but the temperature of solid region doesn't change (It changes very little, If I initialized with 300 the range of variations is 299.9 - 300.2 2. The time step is very very small for Co=0.5 (delta = 0.0001). So the overall computational time is increasing very much. 1. What is the importance of giving temperature value in solidWallMixedTemperatureCoupled. (Because this temp we cannot fix it, It has to develop as the flow develops. Regards Santhosh.. Last edited by santoo_cfd; January 13, 2010 at 01:36. |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Join Date: Dec 2009
Posts: 46
Rep Power: 17 ![]() |
hi
i'm also don't know how to use water in thermophysicalProperties file any one can help best regards |
|
![]() |
![]() |
![]() |
![]() |
#10 |
New Member
John.B
Join Date: Mar 2009
Posts: 14
Rep Power: 18 ![]() |
Hi Santhosh,
Have you been able to sort out how to incorporate water as fluid in chtMultiRegionFoam? This would then be very interesting for me as well. Regards, John |
|
![]() |
![]() |
![]() |
![]() |
#11 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 18 ![]() |
No, I could not figure out anything more, In fact I stopped that activity as I ran out of Ideas, If you have any hints I would be happy to test it.
Regards Santhosh |
|
![]() |
![]() |
![]() |
![]() |
#12 | |
Member
Join Date: Dec 2009
Posts: 39
Rep Power: 17 ![]() |
Hi everyone!
This may be of help unless you've already figured it out by yourselves. Quote:
Ragards Marco |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with running chtMultiRegionFoam after using setSet utility | Victor | OpenFOAM | 12 | March 24, 2023 00:01 |
ChtMultiRegionFoam and P1 radiation model | mabinty | OpenFOAM Running, Solving & CFD | 18 | April 8, 2011 04:41 |
[Other] Offset warning | Mercato | OpenFOAM Meshing & Mesh Conversion | 5 | December 2, 2009 06:35 |
Problem setting with chtmultiregionFoam | Antonin | OpenFOAM Running, Solving & CFD | 3 | July 20, 2009 06:52 |
Star CCM+ Offset Plane | Adam | Siemens | 1 | December 21, 2007 09:03 |