CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

periodic triangular wall fortran

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sbaffini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 2, 2020, 16:40
Smile periodic triangular wall fortran
  #1
New Member
 
Join Date: Sep 2016
Posts: 20
Rep Power: 9
soufiane002 is on a distinguished road
hello every one
i want help please
i want to create a 2d cavity with a triangular wall like in the picture


if someone have an idea how to generate the periodic triangular wall please help
soufiane002 is offline   Reply With Quote

Old   January 3, 2020, 02:45
Default
  #2
Member
 
Join Date: Aug 2018
Posts: 77
Rep Power: 7
vesp is on a distinguished road
homework problem? In any case, what are you asking? How to create the geometry? mesh? or the boundary conditions?
vesp is offline   Reply With Quote

Old   January 3, 2020, 05:13
Default
  #3
New Member
 
Join Date: Sep 2016
Posts: 20
Rep Power: 9
soufiane002 is on a distinguished road
Quote:
Originally Posted by vesp View Post
homework problem? In any case, what are you asking? How to create the geometry? mesh? or the boundary conditions?
I am asking how to create the geometry
Thanks
soufiane002 is offline   Reply With Quote

Old   January 3, 2020, 07:02
Default
  #4
Member
 
Join Date: Aug 2018
Posts: 77
Rep Power: 7
vesp is on a distinguished road
Quote:
Originally Posted by soufiane002 View Post
I am asking how to create the geometry

Thanks


geometrically? That seems simple enough... I guessI still do not understand what you are asking. Could you be more specific?
vesp is offline   Reply With Quote

Old   January 3, 2020, 07:05
Default
  #5
New Member
 
Join Date: Sep 2016
Posts: 20
Rep Power: 9
soufiane002 is on a distinguished road
Quote:
Originally Posted by vesp View Post
geometrically? That seems simple enough... I guessI still do not understand what you are asking. Could you be more specific?
i want just to know how to create the triangular wall in my geometry if there is a function that i can use to generate the triangular wall in function of y or x


thanks
soufiane002 is offline   Reply With Quote

Old   January 3, 2020, 07:35
Default
  #6
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Are you using a specific software? Maybe that has a dedicated forum here.

Also, geometry means nothing. Do you need the geometry in some specific format, or the mesh in it (and which format)?

If you are doing it from scratch in fortran, I guess you have little chances, because it is clear that those are piecewise linear functions and you will face much harder problems along the route.

Moreover, the problem is symmetric, you just need half of that.
sbaffini is offline   Reply With Quote

Old   January 3, 2020, 07:44
Smile
  #7
New Member
 
Join Date: Sep 2016
Posts: 20
Rep Power: 9
soufiane002 is on a distinguished road
i think my question wasn't clear enough
i think the geometry and the mush are related
so i have done with corrugated wall by using a sin function to generate the mush

now i want to change the wall to periodic triangular like in the picture above

i'm doing it from scratch in fortran.

thank you all.
soufiane002 is offline   Reply With Quote

Old   January 3, 2020, 07:53
Default
  #8
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by soufiane002 View Post
i think my question wasn't clear enough
i think the geometry and the mush are related
so i have done with corrugated wall by using a sin function to generate the mush

now i want to change the wall to periodic triangular like in the picture above

i'm doing it from scratch in fortran.

thank you all.
Let me see If I get it correctly:

you already have a mesh generator in Fortran for a case very similar to the one depicted in the picture you posted, but with a sinusoidal top boundary.

You have a function, the sin indeed, that is used to generate the top part of your domain and whatever is linked to it.

You are looking for some mathematical function that, once inserted in the place of the sin one, would change your top boundary and the resulting mesh in the one for the triangular top boundary.

Now, this is very clear, but I'm not sure you can get the expected result without trouble. Nonetheless, the obvious option here would be to define your own Fortran function ytop(x,other_parameters) and do everything in that.

You can basically code your function in a thousand ways, just check here:

https://en.wikipedia.org/wiki/Triangle_wave

EDIT: note how you can get almost there also using just 3 harmonics of the Fourier representation (in case it might be a problem for your code to have singularities in the top boundary).
soufiane002 likes this.
sbaffini is offline   Reply With Quote

Old   January 3, 2020, 08:40
Smile
  #9
New Member
 
Join Date: Sep 2016
Posts: 20
Rep Power: 9
soufiane002 is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
Let me see If I get it correctly:

you already have a mesh generator in Fortran for a case very similar to the one depicted in the picture you posted, but with a sinusoidal top boundary.

You have a function, the sin indeed, that is used to generate the top part of your domain and whatever is linked to it.

You are looking for some mathematical function that, once inserted in the place of the sin one, would change your top boundary and the resulting mesh in the one for the triangular top boundary.

Now, this is very clear, but I'm not sure you can get the expected result without trouble. Nonetheless, the obvious option here would be to define your own Fortran function ytop(x,other_parameters) and do everything in that.

You can basically code your function in a thousand ways, just check here:

https://en.wikipedia.org/wiki/Triangle_wave

EDIT: note how you can get almost there also using just 3 harmonics of the Fourier representation (in case it might be a problem for your code to have singularities in the top boundary).

yes this is exactly my problem
soufiane002 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
Periodic Wall Motion Panglos FLUENT 4 December 12, 2023 15:18
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
[ICEM] Periodic condition between ICEM and FLUENT Touré ANSYS Meshing & Geometry 0 August 5, 2012 17:00
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 01:16


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