CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Simple heat conduction problem (https://www.cfd-online.com/Forums/openfoam/65396-simple-heat-conduction-problem.html)

masb June 13, 2009 09:39

Simple heat conduction problem
 
Dear Coleagues,

I'm looking forward to solve a simple heat conduction problem using OpenFOAM, e.g., a bidimensional block with a temperature difference between east and west boundaries. North and south boundaries may be no heat flux condition.
I appreciate any contribution.

Regards,

Marco.

psosnows June 13, 2009 19:07

Hello,

since I can not find heatConductionFoam, I would advise to take a look at chtMultiRegionFoam. In there, just look at the solid part: solveSolid.H, createSolidFields, etc.

You can find there everything you need and lots more ;)

Regards,
Pawel

masb June 13, 2009 22:03

Pawel,

Thanks for your help.

Regards,

Marco

santos June 14, 2009 05:29

Hi,

The solver you need is laplacianFoam.

Regards,
Jose Santos

Quote:

Originally Posted by masb (Post 219194)
Dear Coleagues,

I'm looking forward to solve a simple heat conduction problem using OpenFOAM, e.g., a bidimensional block with a temperature difference between east and west boundaries. North and south boundaries may be no heat flux condition.
I appreciate any contribution.

Regards,

Marco.


masb June 15, 2009 15:14

Caro José Santos,

Creio que você deve falar português. Muito obrigado pela sugestão. Eu procurei o exemplo relacionado com o solver laplacianFoam. Encontrei flange mas não consegui fazê-lo funcionar. Você poderia me ajudar com isso, por favor?

Agradeço desde já,

Marco Aurélio.

santos June 15, 2009 16:00

Hi Marco,

English is the official language of this forum, so lets stick to the rules.

What is exactly the problem you found when trying to run the flange tutorial? Have you ran the Allrun script?

Regards,
Jose Santos

masb June 15, 2009 20:48

Hi Jose,

sorry for the inconveniences. I have tried to run the blockMesh command. Should I run Allrun script?

Regards,

Marco.

Asghari_M January 11, 2015 13:00

Simple heat conduction problem
 
Dear Colleagues,

Did you get a solution for your problem?
I have a similar discussion started in following link:
http://www.cfd-online.com/Forums/ope...n-problem.html

How can I simulate a simple conduction problem by OF.
My experience about this software is limited to cavity driven tutorial.
Thanks a lot for any suggestion.

zfaraday January 12, 2015 08:25

Hi Marco,

Yes, you should run the Allrun script by typing in the terminal
Code:

./Allrun
. Otherwise you can open the file with a text editor, such as gedit, and execute manually each step on your own.

Regards,

Alex

inginheiro November 16, 2016 11:24

Unfortunately with lapacianFoam you cannot specify a thermophysicalModel (for example, temperature depent thermal diffusivity). You can use chtMultiRegionFoam and just define one solid region.

Cheers

Tobi November 17, 2016 10:53

Some remarks
 
Dear all,

I just want to give you some advice for the sake of clearance. A simple heat conduction problem can be solved by using the laplacianFoam from the basic solvers (as already mentioned here). Another option is to use the chtMultiRegion solver (as mentioned too). But please keep in mind that you should know about the solvers. As inginheiro mentioned, the laplacianFoam solver can just be used for a fixed thermal conductivity. However he mentioned to switch to cht that I would not suggest. If you want (for example) to use a temperature depended field I would rather modify the laplacianFoam than using cht (if I would be a beginner) because cht can be very confusing and for a beginner, FOAM could be confusing (even if it is very simple to use).

At least some personal suggestions for all of you:
  • Always check which problem you want to solve
  • Check the easiest solver that fits your problem best
  • Check if all physical aspects can be taken into account with that solver

    - If not you have two options:

    a) Searching for a better solver which may be more complex
    b) Adapt the solver of choice to your stuff
  • Make sure that you understand the physics and mathematics and that you implement everything right

Even if you have two solids with different conductivities, I would prefer to use laplacianFoam and just modify the conductivity to an scalarField and initial it with setFields in order to have two different physical behavior in one domain rather than using cht. Of course, if you want to have some special contact boundaries it might be worth to switch directly to some cht solver. But as I said, be sure to use the solver you need.

Furthermore, I would like to have posts in which you clearly define your problem rather than just ask for a 2D conduction heat problem. As we already see, everybody is giving some own opinion and no-one knows what the thread starter really want to simulate in detail. The outcome of such things are threads with lot of single-lined replies that are annoying for people who search for an concrete answer. Furthermore, please stay to the question. Here the question was how to solve a 2D conduction problem and NOT how to use OpenFOAM or other topics that are not related to the thread. For beginners I refer to the very good new OpenFOAM Tutorial Wiki wiki.openfoam.com, the User-Guide and other sources. For most people it would be the best to sit down, open a case, and start to understand what we are doing. Finally, Linux skills for bash should be known.

New question that is not related to that thread, open a new one.

@Marco: If you can edit your Spanish reply, please translate it to English.

And now I let you discuss in any direction you want to go ;)


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