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

tests for system ode solvers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2018, 08:37
Default tests for system ode solvers
  #1
Member
 
Marco Ghiani
Join Date: Jan 2011
Posts: 35
Rep Power: 15
drudox is on a distinguished road
Hi everybody !
I'm looking for a place (into the web of course) in which I can find a differential problem (system of ode or ode) in order to testing an ode solver that I wrote just for me ...

the best thing is to find a series of a differential problem with or without the analytical solution

please let me know !
drudox is offline   Reply With Quote

Old   July 16, 2018, 09:36
Default
  #2
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
You could try with the method of manufactured solution as I don't think you will be able to find non trivial solutions for anything beyond 3 equations
sbaffini is offline   Reply With Quote

Old   July 16, 2018, 09:41
Default
  #3
Member
 
Marco Ghiani
Join Date: Jan 2011
Posts: 35
Rep Power: 15
drudox is on a distinguished road
yes but for the system, I don't have any idea ... I would like to find some academic text (pdf) in which there is some exercise ... but i didn't found yet
drudox is offline   Reply With Quote

Old   July 16, 2018, 09:45
Default
  #4
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
Let say that your dependent variables are yi and the independent ones are xi, for i from 1 to n.

Pick up a typical system and a solution yi(xi) you think is representative. Put the solution in the system and use the resulting unbalanced terms as source terms in the system.

That's it
sbaffini is offline   Reply With Quote

Old   July 16, 2018, 10:00
Default
  #5
Member
 
Marco Ghiani
Join Date: Jan 2011
Posts: 35
Rep Power: 15
drudox is on a distinguished road
I'm sorry .. but I really didn't get the point could you explain me with an example?
drudox is offline   Reply With Quote

Old   July 16, 2018, 10:33
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
Let's say your equation is:

dy/dx + y = s

and you want your solution to be, say, y=sin(x-1). Then, inserting your wanted solution in your equation, you get:

s=sin(x-1)+cos(x-1)

If you use this s and the initial condition y(0)=sin(-1), then your solution to the given problem will be y=sin(x-1).

For a system of equations you can just parameterize the solution you want on the ewuation index i.
sbaffini is offline   Reply With Quote

Old   July 16, 2018, 10:54
Default
  #7
Member
 
Marco Ghiani
Join Date: Jan 2011
Posts: 35
Rep Power: 15
drudox is on a distinguished road
ok now I got the point !! thank you very much !
drudox is offline   Reply With Quote

Old   July 16, 2018, 12:14
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Many classical exercises are present in basic textbooks of numerical analysis, I suggest starting from simple test cases like the integration of linear ode, such as


dx/dt =u(x,y)
dy/dt= v(x,y)


for example using the velocity components of a circular motion. Then, you can add the time variability of the components.
FMDenaro 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
Solid Mechanics Solvers added to OpenFOAM Extend bigphil OpenFOAM Announcements from Other Sources 26 October 12, 2017 04:01
How to use the ODE solvers in OpenFoam to solve CFD problems? mod0 OpenFOAM Running, Solving & CFD 0 October 14, 2015 02:57
FSI solvers - best solvers steven123 OpenFOAM Running, Solving & CFD 0 July 8, 2014 10:26
Two ODE objects simultaneously JBUNSW OpenFOAM Programming & Development 0 November 28, 2012 21:46
Help linking icoFoam and ODE solvers skabilan OpenFOAM 6 January 6, 2009 05:33


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