|
[Sponsors] |
October 15, 2014, 10:36 |
UDF for changing zone of some cells
|
#1 |
New Member
hamid
Join Date: Oct 2014
Posts: 6
Rep Power: 12 |
Hi,
can anybody tell me how I can change zone type of some cells with udf in fluent? Thank you |
|
October 15, 2014, 12:15 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
I don't think that is possible with a udf.
|
|
October 16, 2014, 02:52 |
|
#3 |
New Member
k
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
Thank you Pakk. Instead of that, can I import two .msh files to fluent and then replace the zone of some cells with udf?
Best ragards |
|
October 16, 2014, 02:58 |
|
#4 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
Why would you want that?
|
|
October 16, 2014, 03:18 |
|
#5 |
New Member
k
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
I have a .msh file for a foam like structure, with solid and fluid zones. I only need a central sphere of that cube, whereas the outside of sphere be in fluid zones.
|
|
October 16, 2014, 03:27 |
|
#6 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
Why do you need to specify that in FLUENT? Can't you divide the geometry in the desired zones in the geometry or meshing step?
|
|
October 16, 2014, 04:21 |
|
#7 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
I can see two ways to do this.
1. As CeesH says: don't do this in Fluent, but do this before you make your mesh. This is by far the easiest method. 2. If, for some reason, you only have the .msh files and you can not get access to the original geometry, there is a workaround. Move the geometry (by translate mesh) such that the center of the sphere is in the origin, define a custom field function as the distance to the origin, and mark (adapt->mark) cells with that custom field function smaller than the radius, and then separate your mesh (mesh->separate) with "marked". You will have to sort some of the details out yourself, and the result will not be a smooth sphere because it will follow the mesh faces in your original mesh. I would strongly advice against this. But in your questions you keep saying you want to do it with a udf. Is there a reason why you want a udf for this? I don't see any reason for that. |
|
October 16, 2014, 11:13 |
|
#8 |
New Member
k
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
Thank you for your reply. Actually I only have the .msh file. And as you mentioned, in this way I will haven't a smooth sphere. But it's the only way. I did the procedure you proposed, before. As I mentioned before, my msh file is contained of solid and fluid zones. When I separated the marked region (outside of the sphere), the solid zone divided to two region. Then I tried to merge the outside of the sphere with the fluid zone. But it didn't work. In the opened window (mesh->merge), I only could merge regions with the same type of zone. Can you please tell me how can I merge the regions?
The reason for using udf is that I haven't a way to merge the regions (with different zone types) in my mind. Let me know what is your suggestion? Best regards |
|
October 16, 2014, 12:24 |
|
#9 | ||
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
Quote:
What you want is to make the outside of the sphere fluid. So do that. Go to "Cell Zone Conditions", select the zone you want to change, and change "Type" from "Solid" to "Fluid". If you want, you could merge afterwards, but merging is not the answer to your problem. |
|||
October 16, 2014, 15:57 |
|
#10 |
New Member
k
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
Thank you for your helpful reply. Now how can I export mesh file with new zones from fluent? I would like to import it to ICEM.
Best regards |
|
October 16, 2014, 17:12 |
|
#11 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
As far as I know, that is impossible to do with Fluent. I would not know how. If you manage to do this, please let me know!
|
|
October 16, 2014, 21:43 |
|
#12 |
New Member
ketan
Join Date: Oct 2014
Posts: 3
Rep Power: 12 |
can an one help me out in explaining : what is meant by mesh orientation in north and east in solar radiaton model. what does 0 and 1 signify
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with divergence | TDK | FLUENT | 13 | December 14, 2018 07:00 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 11:52 |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 06:50 |
Problem in IMPORT of ICEM input file in FLUENT | csvirume | FLUENT | 2 | September 9, 2009 02:08 |
Create an UDF function for defining a zone ... | CFDNewbie | FLUENT | 0 | July 18, 2007 15:19 |