Hello,
I am wondering it is possible to set species transport inside a domain?
You can understant what I mean in these pictures.
First picture is computational domain.
Second one is a boudanry to set a species transport which is located boundary of the domain.
Third one is a boudanry to set a species transport which is inside the domain.
Of course we can set a species transport at the boudanry such as the sencond picture,
but how about it such as third picture?
In the third picture, the boudanry surface that I want to set for species transport is floating inside the computational domain(it is fixed of course.).
In salome, I named the floating boudanry something.
But after the preprocessing in codesaturne, I found that this boundary cannot be regarded as the boundary.
Sorry It is complicated to explain.
Best regards,
Tsubasa
Set species transport inside domain (not boundary of domain)
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4220
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Set species transport inside domain (not boundary of domain)
Hello,
There are 2 different aspects to this:
- If a face is connected to 2 internal cells, it is an internal cell, and not available for boundary conditions, but you can still select it by its group name as long as you use the criteria for interior and not boundary faces (getfac instead of getfbr in Fortran, cs_selector_get_i_face... instead of cs_selector_get_b_face... in C). This may be useful for balances for example, or converting those faces back to boundary faces (see mesh preprocessing examples for use of cs_mesh_boundary_layer_insert).
- To inject a scalar in a volume zone, you can use the volume mass injection approach : https://www.code-saturne.org/documentat ... ction.html
The mass source term injection system has changed quite a bit in v7.0. The Fortran variant from older versions is still compatible, but will be removed in a future version, so using the suggested variant (link above) is better.
In any case, this is not yet available from the GUI, so you need user-defined sources for this.
Best regards,
Yvan
There are 2 different aspects to this:
- If a face is connected to 2 internal cells, it is an internal cell, and not available for boundary conditions, but you can still select it by its group name as long as you use the criteria for interior and not boundary faces (getfac instead of getfbr in Fortran, cs_selector_get_i_face... instead of cs_selector_get_b_face... in C). This may be useful for balances for example, or converting those faces back to boundary faces (see mesh preprocessing examples for use of cs_mesh_boundary_layer_insert).
- To inject a scalar in a volume zone, you can use the volume mass injection approach : https://www.code-saturne.org/documentat ... ction.html
The mass source term injection system has changed quite a bit in v7.0. The Fortran variant from older versions is still compatible, but will be removed in a future version, so using the suggested variant (link above) is better.
In any case, this is not yet available from the GUI, so you need user-defined sources for this.
Best regards,
Yvan
Re: Set species transport inside domain (not boundary of domain)
Hello Yvan,
By using the volume mass injection, is it possible to set a point source and line sourse for pollutant injection inside domain?
Best regards,
Tsubasa
By using the volume mass injection, is it possible to set a point source and line sourse for pollutant injection inside domain?
Best regards,
Tsubasa
-
- Posts: 4220
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Set species transport inside domain (not boundary of domain)
Hello,
Yes, it is possible, if the volume zone you build/select is based on the cells containing te line or point source.
Best regards,
Yvan
Yes, it is possible, if the volume zone you build/select is based on the cells containing te line or point source.
Best regards,
Yvan
Re: Set species transport inside domain (not boundary of domain)
Hello Yvan,
Actually I think I found a option in GUI which is similar to what I want to do.
You can find a picture attached following: By this, can I set volumic injection?
If so, could you let me know hot to set a size of volume for source?
(In tehe examples tab in GUI, there is nothing.)
Best regards,
Tsubasa
Actually I think I found a option in GUI which is similar to what I want to do.
You can find a picture attached following: By this, can I set volumic injection?
If so, could you let me know hot to set a size of volume for source?
(In tehe examples tab in GUI, there is nothing.)
Best regards,
Tsubasa
-
- Posts: 4220
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Set species transport inside domain (not boundary of domain)
Hello,
You could define a source term over the whole domain and set its value to something > 0 only in a selected region, but this is not the easiest way to proceed.
You should rather define one or more volume zones with geometric selection criteria (such as the "box[]" criteria type), which will select all cells whose center matches the criteria, then use those for sour terms.
This way, the actual volume of the selected zones will be known and usable.
Best regards,
Yvan
You could define a source term over the whole domain and set its value to something > 0 only in a selected region, but this is not the easiest way to proceed.
You should rather define one or more volume zones with geometric selection criteria (such as the "box[]" criteria type), which will select all cells whose center matches the criteria, then use those for sour terms.
This way, the actual volume of the selected zones will be known and usable.
Best regards,
Yvan