CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Laplacian Solver. Assigning different transport properties (https://www.cfd-online.com/Forums/openfoam-pre-processing/70392-laplacian-solver-assigning-different-transport-properties.html)

mks November 23, 2009 04:59

Laplacian Solver. Assigning different transport properties
 
Hello,

i'm trying to solve the following problem using LaplacianFoam: Temperature distribution in a solid consisting of two regions which have different heat transfer coefficients. How can one assign the transport properties (Heat coefficient in LaplacianFoam) to different regions?
The reason is to estimate the distribution of temperature through insulation containing several layers. Any ideas how do solve it? Maybe another solver?

mks November 24, 2009 08:53

Problem seems to be solved.
 
I think i could solve the problem. For those who is interested in solution: I modified the standard solver LaplacianFoam. In the createFields.H I have changed the way, DT is read in just like the Temperature Field:

Info<< "Reading diffusivity D\n" << endl;

volScalarField DT
(
IOobject
(
"DT",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

Now in temestep 0/ folder create the file DT by copying+modifying the T file. I used the SetFieldsDict in system folder for assigning the DT values to the cell volumes:

defaultFieldValues
(
volScalarFieldValue DT 4e-04
);

regions
(
boxToCell
{
box ( 0 0 0 ) ( 1.5 3 0.1 );
fieldValues
(
volScalarFieldValue DT 1e-04
);
}
);

After compiling the new solver and running it i got a temperature distribution that seems to be right.

Arslan Arshad April 7, 2015 20:20

can you share your case here?:confused:

mks April 8, 2015 01:59

Hi Arslan,

yes I could share it, but it is not possible to attach here files larger than 97KB... Give me you email, so I can sent it to you.

Arslan Arshad April 8, 2015 16:33

arslan.arshad786@yahoo.com


THANK YOU

Arslan Arshad April 20, 2015 10:04

I did not get your mail.
Please send it to the email given below:
arslan.arshad786@yahoo.com :o

ancolli February 16, 2017 02:36

Can u share ur example with me?
ancolli@gmail.com
Thanks

mks February 16, 2017 04:57

Hi Alejandro,
just sent an email to you!

ktk June 19, 2017 08:18

Req
 
Hi,

I've been trying to do this for a while now.. Can any of you please mail me the modified solver files?

ID: ktk04spiker@gmail.com

rahul62 November 20, 2017 04:27

Req
 
Hi,
Can you please share your example with me.
email- gangrahul62@gmail.com

thanks

mks November 20, 2017 05:00

Hi rahul62,
sorry, I don't have this anymore. Please ask someone to whom I did send it previously, e.g. ktk04spiker@gmail.com, ancolli@gmail.com, arslan.arshad786@yahoo.com etc.

ancolli November 20, 2017 08:39

1 Attachment(s)
here it is...

rahul62 November 20, 2017 10:04

How to define different value of DT for different region. The above case doesn't contain 0 folder.

ancolli November 20, 2017 10:16

1 Attachment(s)
Quote:

Originally Posted by ancolli (Post 672184)
here it is...

Sorry. check this one

shaileshbg April 2, 2018 07:27

Add heat source
 
Hi Mks,

That is a wonderful way of assigning transport properties to different regions without having to go through toposet and splitMeshRegions process. But I want to know if it is possible to add heat sources to the different regions created by this way.

In fvOptions the possible selection modes are: all, cellSet, cellZone, points,,

Could you please shed some light on this.

ancolli April 3, 2018 08:11

Quote:

Originally Posted by shaileshbg (Post 687362)
Hi Mks,

That is a wonderful way of assigning transport properties to different regions without having to go through toposet and splitMeshRegions process. But I want to know if it is possible to add heat sources to the different regions created by this way.

In fvOptions the possible selection modes are: all, cellSet, cellZone, points,,

Could you please shed some light on this.

I think in that case you should use a multi-region approach. Maybe someone else can give you a different (better) hint.
Regards

srivaka September 20, 2018 03:41

How to give Heat transfer coefficient BCs and variable heat flu Laplacian OpenFoam5
 
i'm trying to solve 3D conduction problem using LaplacianFoam OF5: Temperature distribution in a solid surrounded by of two regions which have different heat transfer coefficients and ambient Temperatures.And also how to give variable heat flux boundary condition.
I tried groovyBC, but it is not working, any other method please. I have only one region.

ancolli September 20, 2018 07:26

You need to use the multiRegion approach. GroovyBC is not working in that case. See tutorials >> heatTransfer >> chtMultiregionFoam and chtMultiregionSimpleFoam

here u have a detailed example for heat transfer

https://www.slideshare.net/ARPITSING...regiontutorial

or a simplified solver witth modified BC for an electrochemical problem

https://www.sciencedirect.com/scienc...170?via%3Dihub

under the multi-region approach

Regards


All times are GMT -4. The time now is 16:25.