The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Percolation Model

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
cntenthusiast Posted - 07/13/2012 : 10:03:13 PM
Hello, I'm a chemist and I was asked to model Percolation Theory using Origin 8.1, but I have NO Experience using C++. I know some Basic, so I am familiar with the basics of coding and syntax. Basically I need some tips on the following:

Making a square grid, such as for all integers between 1 and 100.
Be able to plot random integers only on the vertexes on the grid.
When two adjacent vertexes are plotted, a line joins them.
When a complete path is formed from left to right, it changes color to signify it.
The graph displays: the number of vertexes with points plotted on them, and fraction of plotted points/total vertices.

Any help would be appreciated.

Thanks!
2   L A T E S T    R E P L I E S    (Newest First)
dabaozha Posted - 07/19/2012 : 05:32:57 AM
I have just figured out. But I am not sure if this picture is the very stuff you need. By the way, we can polish it if you can provide the input parameters you want. I just used the xy dimensions and the number of random integers as the input.

Jason
OriginLab Technical Services
dabaozha Posted - 07/18/2012 : 06:57:24 AM
I am trying it. Just now, I paused at the last step: path-finding. I am seeking for an efficient algorithm to find out all the points in the connected-path.


---
Jason
OriginLab Technical Services

The Origin Forum © 2008 Originlab Corporation Go To Top Of Page
Snitz Forums 2000