CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Heat transfer with solid elements conduction (https://www.cfd-online.com/Forums/openfoam-solving/58173-heat-transfer-solid-elements-conduction.html)

suredross April 7, 2008 06:34

hi Niels, thanks for the help
 
hi Niels,
thanks for the help.it is one fluid per inlet and also i first run the case(successfully) in icoFoam with one fluid and this is a new dimension to the problem(2 different fluids).how can i ,therefore, modify my earlier source code to cater for these two different fluids?or i have to try a new solver (interfoam)completely?
thank you once again

ngj April 7, 2008 07:14

Hi Davey The easiest would
 
Hi Davey

The easiest would be to look at the damBreak case. Try to run it an see what happens. When you understand how you should set the boundary conditions etc, the apply your geometry and solve using the interFoam solver.

- Niels

suredross April 8, 2008 06:51

Hi Neil, i am trying the damb
 
Hi Neil,
i am trying the dambreak case now but with no success.blockmesh gives me this warning :
From function polyMesh::polyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 577
Found 10 undefined faces in mesh; adding to default patch.
moreover i do not understand the gamma.org and pd files.i think there is a problem with the block faces or the blocks themselves but i am at a loss.i know it might be a bit stupid but i just cant seem to make it any better.any ideas?
and also isn't there any way i can modify my earlier source code to solve this extended case of mine?
thanks in advance
davey

ngj April 8, 2008 07:21

Hi Davey I suggest that you
 
Hi Davey

I suggest that you read on from page 55 in the User Guide. It will take you trough the setup procedure of the damBreak case.
Gamma is the quantity which tells you whether it is phase 1 or phase 2 which is present in the considered volume. pd is the dynamic pressure.

From my point of view it is significantly easier to use any of the multiphase solvers in stead of modifying icoFoam as it is for one phase only.

- Niels

suredross April 8, 2008 07:34

hi Neil, i have resolved damb
 
hi Neil,
i have resolved dambreak to run now.trying it on my case now.thanks for your concern.

davey

suredross April 9, 2008 06:07

hi Neil, when i run the code
 
hi Neil,
when i run the code on my case i get the following error message:
#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/home/cfd/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigFpe::sigFpeHandler(int) in "/home/cfd/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted: [0x110420]
#3 Foam::Time::adjustDeltaT() in "/home/cfd/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so"
#4 Foam::Time::setDeltaT(double) in "/home/cfd/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so"
#5 main in "/home/cfd/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/jxnFoam"
#6 __libc_start_main in "/lib/libc.so.6"
#7 Foam::regIOobject::readIfModified() in "/home/cfd/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/jxnFoam"
Floating point exception

any ideas on how to turn this around?
thank you.

ngj April 9, 2008 07:03

Hi No, but try to sent me y
 
Hi

No, but try to sent me your entire setup, and I will give it a look today or tomorrow.

- Niels

suredross April 9, 2008 08:17

hi Niels, here are the files
 
hi Niels,
here are the files
case:
solver:


thank you

ngj April 9, 2008 08:41

I cannot download the files. U
 
I cannot download the files. Use my email address from my profile.
/ Niels

suredross April 11, 2008 04:30

i have sent them to your mail
 
i have sent them to your mail address.
thank you

suredross April 14, 2008 07:23

hi, how can add a concentrati
 
hi,
how can add a concentration equation to the icofoam solver to cater for liquids(2) of different concentrations?

thanks
davey

emilianyassenov November 14, 2008 03:41

Hallo to all,, I am using
 
Hallo to all,,

I am using the IcoFoam and I have added the T field on it.but I have
linear in heat flow...Is it possible to have parabolic heat flow in
icoFoam

can somebody help me..

Thanks

Emo

emilianyassenov November 14, 2008 05:17

my T file look like like this.
 
my T file look like like this...

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.5 |
| \ / A nd | Web: http://www.OpenFOAM.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 0;

boundaryField
{
fixedWalls
{
type cyclic;

}

inlet
{
type fixedValue;
value uniform 295;
}

outlet
{
type zeroGradient;

}

}

// ************************************************** ***********************
I want to have parabolic results...I am using icoFoam, my model is pipe..

help me...

Emo

ep4 November 14, 2008 05:24

I think icoFoam cannot manage
 
I think icoFoam cannot manage heat transfert. It doesn't solve any energy equation.

You define a T file but i think icoFoam just doesn't use it.

The haet transfer solvers are given in the User guide (U-84)

emilianyassenov November 14, 2008 05:44

Hallo Eric, Thanks for answ
 
Hallo Eric,

Thanks for answer...I have include the transfer equation
this one
fvScalarMatrix TEqn
(
fvm::ddt(T)
+ fvm::div(phi, T)
- fvm::laplacian(DT, T)
);

TEqn.solve();

BC T:
like this
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.5 |
| \ / A nd | Web: http://www.OpenFOAM.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 295;

boundaryField
{
fixedWalls
{
type zeroGradient;

}

inlet
{
type fixedValue;
value uniform 295;
}

outlet
{
type zeroGradient;

}

}

// ************************************************** *********************** //
it is pipe..I have now const. T and I want to have it in parabolic...
is it possible..
thanks again

Emo

ep4 November 14, 2008 05:58

In your T file, the air at the
 
In your T file, the air at the inlet is at 295 K, but you don't have any other surface heated or at a different temperature.
In this case, there is no heat transfert. For example, you should impose a temperature or a heat flux on your fixedWall boundary.

emilianyassenov November 14, 2008 06:12

hello Again Eric, I want ex
 
hello Again Eric,

I want exactly that in fixedWall but I don t know how to do it...my inlet is water..

Can you help me..

Thanks in advance

Emo

ep4 November 14, 2008 06:18

I don't understand your proble
 
I don't understand your problem. Water or air, you can impose a temperature on the wall for example, no?

fixedWalls
{
type fixedValue;
value uniform 350;
}

The fact that you are using water is related to the constant/thermophysicalProperties file where you have to choose the right properties, models,.. See chapter 7 of the User Guide.

emilianyassenov November 14, 2008 07:50

Hallo Eric, I am beginner..
 
Hallo Eric,

I am beginner...I want to use IcoFoam...I have meshed simple pipe and I want to see temperature increasing or distribution...I am working with water...parabolic form there must be increasing or decreasing of T.I have now constant T.
thats all...
thanks can you help me
really thanks
Emo

emilianyassenov November 14, 2008 08:47

Hello, Someone give me the
 
Hello,

Someone give me the idea which solver should I use for laminar flow(water) where I can see heat flux distribution on it...my shape is pipe

thanks in advance

Emo


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