Inlet, Temperature

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
Ehsandehghani
Posts: 9
Joined: Tue Jan 31, 2023 11:59 am

Inlet, Temperature

Post by Ehsandehghani »

Hello,
I want to enter different temperatures at Inlet in OpenFOAM, is that possible?
I have defined a table and entered a list for temperatures, but did not work
Attachments
Screenshot 2023-03-15 103827.png
Screenshot 2023-03-15 103827.png (19.61 KiB) Viewed 1101 times
User avatar
NewJoker
Veteran
Posts: 3014
Joined: Sun Oct 11, 2020 7:49 pm

Re: Inlet, Temperature

Post by NewJoker »

It all comes down to what is written in case files. I think that something like this in the T file could work:

Code: Select all

    inlet
    {
        type        uniformFixedValue;
        uniformValue table
       (
       (0.0 290.0)
       (1.0 340.0)
       )
    }

Give it a try. Of course, enter your values. Some additional changes might be necessary.
Ehsandehghani
Posts: 9
Joined: Tue Jan 31, 2023 11:59 am

Re: Inlet, Temperature

Post by Ehsandehghani »

It worked, thank you
User avatar
NewJoker
Veteran
Posts: 3014
Joined: Sun Oct 11, 2020 7:49 pm

Re: Inlet, Temperature

Post by NewJoker »

Ehsandehghani wrote: Wed Mar 29, 2023 1:01 pm It worked, thank you
Great, did you have to modify anything in the code that I posted or was it fine ?
Ehsandehghani
Posts: 9
Joined: Tue Jan 31, 2023 11:59 am

Re: Inlet, Temperature

Post by Ehsandehghani »

I want to say, the first variable is "time" and the second variable is "temperature[K]"
I want to make a coupling between CFD (cfdof) and FEM. Is it possible to set different Heat Flux in ConstraintHeatflux?
I will take temperature from cfd and put it in FEM. Do you have a idea for this coupling?
User avatar
NewJoker
Veteran
Posts: 3014
Joined: Sun Oct 11, 2020 7:49 pm

Re: Inlet, Temperature

Post by NewJoker »

It’s not supported. You would have to do this manually (with some scripts) or use the preCICE tool for multiphysics analysis.
Ehsandehghani
Posts: 9
Joined: Tue Jan 31, 2023 11:59 am

Re: Inlet, Temperature

Post by Ehsandehghani »

How can i do this manually?
Schoud i change inp.file?
Attachments
Screenshot 2023-03-29 221355.png
Screenshot 2023-03-29 221355.png (47.97 KiB) Viewed 868 times
User avatar
NewJoker
Veteran
Posts: 3014
Joined: Sun Oct 11, 2020 7:49 pm

Re: Inlet, Temperature

Post by NewJoker »

Ehsandehghani wrote: Wed Mar 29, 2023 8:17 pm How can i do this manually?
Schoud i change inp.file?
Automation with scripts would be necessary. You would have to export temperatures from CFD results and map them to mesh for FEM in CalculiX. The problem is that the results would have to be interpolated and then you could define a temperature field with keywords (again using some automation because you will need lots of keyword lines defining temperature at each node). ParaView may help with this process, at least partially: https://discourse.paraview.org/t/interp ... -mesh/5479
Post Reply