{"action":"created","issue":{"url":"https://api.github.com/repos/mit-crpg/OpenMOC/issues/164","labels_url":"https://api.github.com/repos/mit-crpg/OpenMOC/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/mit-crpg/OpenMOC/issues/164/comments","events_url":"https://api.github.com/repos/mit-crpg/OpenMOC/issues/164/events","html_url":"https://github.com/mit-crpg/OpenMOC/pull/164","id":92495846,"number":164,"title":"Adding simple gradient sample cases","user":{"login":"geogunow","id":2420416,"avatar_url":"https://avatars.githubusercontent.com/u/2420416?v=3","gravatar_id":"","url":"https://api.github.com/users/geogunow","html_url":"https://github.com/geogunow","followers_url":"https://api.github.com/users/geogunow/followers","following_url":"https://api.github.com/users/geogunow/following{/other_user}","gists_url":"https://api.github.com/users/geogunow/gists{/gist_id}","starred_url":"https://api.github.com/users/geogunow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geogunow/subscriptions","organizations_url":"https://api.github.com/users/geogunow/orgs","repos_url":"https://api.github.com/users/geogunow/repos","events_url":"https://api.github.com/users/geogunow/events{/privacy}","received_events_url":"https://api.github.com/users/geogunow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mit-crpg/OpenMOC/labels/Benchmarking","name":"Benchmarking","color":"808000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-01T22:08:46Z","updated_at":"2015-07-13T15:19:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mit-crpg/OpenMOC/pulls/164","html_url":"https://github.com/mit-crpg/OpenMOC/pull/164","diff_url":"https://github.com/mit-crpg/OpenMOC/pull/164.diff","patch_url":"https://github.com/mit-crpg/OpenMOC/pull/164.patch"},"body":"In this PR, I add a few sample inputs to showcase examples where the user might desire to create a lattice with unequal x and y widths.\r\n\r\nTo showcase this, I have created two sample cases. The first is a one-directional gradient with the solution shown below\r\n\r\n![fsr-flux-group-1](https://cloud.githubusercontent.com/assets/2420416/8465973/ba37ece8-2013-11e5-851c-b7c6177261ea.png)\r\n\r\nThe second is a two dimensional gradient with a symmetrical solution. \r\n\r\n![fsr-flux-group-1](https://cloud.githubusercontent.com/assets/2420416/8465966/aea1fa2c-2013-11e5-9324-431a1a8cc408.png)\r\n\r\nThe keen observer might notice that these are almost the same case, just the second case is half the size and solved across the whole domain. Both of these cases have analogous files that include CMFD acceleration, much like the current C5G7 benchmark inputs."},"comment":{"url":"https://api.github.com/repos/mit-crpg/OpenMOC/issues/comments/120964824","html_url":"https://github.com/mit-crpg/OpenMOC/pull/164#issuecomment-120964824","issue_url":"https://api.github.com/repos/mit-crpg/OpenMOC/issues/164","id":120964824,"user":{"login":"geogunow","id":2420416,"avatar_url":"https://avatars.githubusercontent.com/u/2420416?v=3","gravatar_id":"","url":"https://api.github.com/users/geogunow","html_url":"https://github.com/geogunow","followers_url":"https://api.github.com/users/geogunow/followers","following_url":"https://api.github.com/users/geogunow/following{/other_user}","gists_url":"https://api.github.com/users/geogunow/gists{/gist_id}","starred_url":"https://api.github.com/users/geogunow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geogunow/subscriptions","organizations_url":"https://api.github.com/users/geogunow/orgs","repos_url":"https://api.github.com/users/geogunow/repos","events_url":"https://api.github.com/users/geogunow/events{/privacy}","received_events_url":"https://api.github.com/users/geogunow/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T15:19:28Z","updated_at":"2015-07-13T15:19:28Z","body":"@wbinventor How would you do that? I tried creating a ``build_cube`` routine in ``geometry.py`` that takes parameters ``length``, ``num_cells_x``, ``num_cells_y``, ``material``, and ``boundary_conditions`` as input but when the function returns the ``Geometry`` object it seems that Python destructs some of the necessary structure after the function returns and I get segmentation faults."}}