CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Energy Source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2018, 23:35
Default Energy Source
  #1
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
In my simulation I have a container full with 90% liquid water and 10% vapor water ( Steam 2l and Steam 2v material correspondingly), that is, my domain has 2 fluids.

I want to insert a constant volumetric heat source (energy source) in my container that heats the fluids. Like a cylinder of heat that emits the same amount of energy all the time and is motionless.

I created a subdomain that is the fluid domain itslef and I got two options:

- Bulk Source
- Fluid Sources

Wich one should I choose to create the cylindrical energy source right in the middle of the domain, that acts continuously and in the same way in the two fluids regardless of the volume frations variation?

That is, the source must transmit energy in that static volume constantly regardless of the fluids behaviour. Should I choose bulk source or select both fluids in Fluid Sources? Or is it simply not possible?
oliveira1820 is offline   Reply With Quote

Old   June 14, 2018, 00:15
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This is all described in the CFX documentation.

Section 17.2.2: "Select Bulk Sources to specify bulk sources. Bulk sources apply to all fluids in a multiphase simulation."
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   June 14, 2018, 01:09
Default
  #3
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
I read it all but i keep not understanding and why is it different in the end if my container is always 100% full. My source is supposed to be a cylinder static in the middle, that with the fluid flow will have different fluid volume fractions in each instant.

Accordingly with the CFX manual:

Bulk Sources - "Bulk Sources automatically multiply the specified source by volume fraction, ensuring that the source reduces to zero as the fluid volume fraction reduces to zero."

Does this means that, if my container is 90% liquid water and 10% vapour water, and besides the volume fractions change but still add up to 100%, the bulk source is always constant because whatever the fluid it is in a certain position its fraction is never zero?

Fluid Sources - "Fluid sources are used in an Eulerian multiphase simulation to apply volumetric source terms to individual fluids"

Does this means that if I apply the same source to both fluid, the source will be constant volumetrically, because it will be aplied to the position, independently of the fluid in that position, because ther is always or water vapour or liquid?

And considering that my CEL source fucntion is:

Total Source===Sourcefluido

LIBRARY:
CEL:
&replace EXPRESSIONS:

Sourcefluido = dominiofluido* 800[kg m^2 s^-3]

dominiofluido = step((xmaxx-xrms)/unidade)* step((ymaxx-yrms)/unidade)* step((zmaxf-zrms)/unidade)

unity = 1 [m]
xmaxx = 0.0042499 [m]
xrms = sqrt(x^2)
ymaxx = 0.0042499 [m]
zmaxf = 0.006 [m]
zrms = sqrt(z^2)
END
END
END



In the end what is the difference between the sources in my case?
oliveira1820 is offline   Reply With Quote

Old   June 14, 2018, 01:24
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I read the documentation as saying that if the water volume fraction is 0.9 and water vapour is 0.1 then a bulk source will apply 90% of the power to the wafer phase and 10% of the power to the vapour phase.

If you use a fluid specific source then 100% of the power will be applied to whatever phase you choose, regardless of its volume fraction.

Also: Why are you using sqrt(x^2)? Is this to get the absolute value? If so, then just use abs(x).
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   June 14, 2018, 01:56
Default
  #5
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
So the best option to get a constant energy source in a volume, independetly of the fluids volume fractions variations is the fluid specific source. Selecting both fluids and applying my cell source to both fluids, it will apply the same energy to every different position inside my cylinder, right? Because each position is occupied by vapour water or liquid water alternatively.

Thanls, Il use abs insteadī.
oliveira1820 is offline   Reply With Quote

Old   June 14, 2018, 02:01
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I do not know what you are trying to do so cannot say what is best. If you are unsure what the options mean then try them both and find out.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   June 14, 2018, 22:33
Default
  #7
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
I will do it, thank you for everything Ghorrocks.
oliveira1820 is offline   Reply With Quote

Old   June 15, 2018, 02:31
Default
  #8
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Just to clearly understand the Fluid Specific Source.

Donīt forget that my cell function applies only to the cylinder with those dimensions. So, inside the cylinder it will be vapour water and liquid water, always changing fractions (phase transfer) and changing position). And I want that my 1000 Energy to be distributed uniformily inside the cylinder, independently of the vapour or liquid quantity or position.

If I activate both fluids, and use the same 1000 W Energy Total Source for both , does it distributes the 1000W energy in both fluids ( inside my cylinder) or does it apply 1000W to each fluid ( to the portion of each indide the cylinder)?



fluido= liquid water
vapour = vapour water
Attached Images
File Type: png 1.PNG (10.6 KB, 11 views)
File Type: png 2.PNG (8.7 KB, 7 views)
oliveira1820 is offline   Reply With Quote

Old   June 15, 2018, 03:00
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The screen shots you show will apply Sourcefluido [W] of heat to fluid "fluido" and Sourcefluido [W] of heat to fluid "VAP". So there will be a total of 2*Sourcefluido [W] of heat applied to the region.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   June 15, 2018, 12:54
Default
  #10
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Just to conclude. I have my fluid domain with water vapour (dispersed) and water liquid (continuous) but the source only applies to a certain part: the cylinder. The fractions keep varying inside.

Instant1 - 80% of the cylinder is Liquid water and 20% is Vapour.

Instant 2 - 60% of the cylinder is Liquid water and 40% is Vapour.

If I select both, it will apply 1000 W on the 80% of liquid water and 1000 W on the 20% Vapour and on instant 2 it will apply 1000 W to the 60% of liquid water and 1000W to the 40% of vapour, is it right?.

If I want to only 1000 W in total inside the cylinder I must estimate the percentage of vapour or liquid water that is inside the cylinder and apply, imagine there is 40% of liquid and 60% of vapour, 400 W to the liquid water and 600 to the vapour?
oliveira1820 is offline   Reply With Quote

Old   June 16, 2018, 05:06
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
If I select both, it will apply 1000 W on the 80% of liquid water and 1000 W on the 20% Vapour and on instant 2 it will apply 1000 W to the 60% of liquid water and 1000W to the 40% of vapour, is it right?.
If you use a Fluid specific source then, yes.

Quote:
If I want to only 1000 W in total inside the cylinder I must estimate the percentage of vapour or liquid water that is inside the cylinder and apply, imagine there is 40% of liquid and 60% of vapour, 400 W to the liquid water and 600 to the vapour?
Or you could just use a bulk source and CFX will do the split based on volume fraction for you.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   June 17, 2018, 14:04
Default
  #12
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Thatīs right, I could I miss that, thanks!!
oliveira1820 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18


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