Having taken the course I feel like I should know this answer but if I run two identical egs_chamber simulations on…

Having taken the course I feel like I should know this answer but if I run two identical egs_chamber simulations on two different Windows machines both running EGS 2017, would I expect to get very similar results or identical results?

The particle source of the duplicated input is a single phase space file. The path to this file is slightly different between the two machines. XCSE, RR, IPSS, and Correlated Sampling VR is used but is identical for both. The random number seeds are specified under the rng definition block and are the same.

Currently, I seem to be getting results that agree within uncertainty but was wondering why they wouldn’t necessarily be identical. The bigger issue I’m seeing is a much larger disagreement between running this simulation on Windows boxes and running the same simulation on a parallel computing cluster so I’m trying to troubleshoot starting at the basics. Thanks!

Hi everyone

Hi everyone,

I am using egs_brachy to score scatter dose for an I-125 source and I am having some issues interpreting the output in the egslog file. My understanding is that scatter dose contributions are normalized to the total radiant energy given by the total energy that escapes the source encapsulation. The issue I am having is that values listed are off by a factor of 10^6 when I do the calculation manually. For example, for the total dose (not normalized) I have an average of 5.66E-15 Gy/hist and when this is normalized to radiant energy in egs_brachy I get 0.00283 (Gy/hist)/R. The total energy escaping sources is given by 1.2489E7 MeV. If I convert this to J I get 2.0E-6J and dividing the non-normalized value by this gives 2.83E-9 kg^-1. Am I doing something wrong here?

-Steven Nich

Greetings.

Greetings. I am an EGSnrc user since 2005. I am having issues compiling a fresh Installation of egs_brachy on my Windows 10 pc:

Windows 10 HOME 64bit 1709

gfortran 7.2.0 (MinGW-W64)

gcc 7.2.0 (MinGW-W64)

g++ 7.2.0 (MinGW-W64)

GNU Make 4.2.1 (mingw32-make)

Have you been able to find a solution to this Problem? I shall be grateful if you could assist.

g++ -Wall -Wno-sign-compare -I. -I.gzstream -IC:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSElibwin6432 -IC:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEegs++ -IC:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEegs++geometry -IC:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEinterface -IC:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEiaea_phsp -I.zlib -DWIN32 -O3 -ffast-math -c -o egs_brachy_win6432.o egs_brachy.cpp

process_begin: CreateProcess(NULL, uname, …) failed.

mingw32-make: Makefile:51: pipe: No error

process_begin: CreateProcess(NULL, uname, …) failed.

mingw32-make: Makefile:89: pipe: No error

In file included from C:/Program Files/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/winnt.h:9:0,

from C:/Program Files/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,

from C:/Program Files/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/windef.h:8,

from C:/Program Files/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/windows.h:69,

from C:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSElibwin6432/egs_config1.h:36,

from C:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEegs++/egs_libconfig.h:54,

from C:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEegs++/egs_advanced_application.h:42,

from egs_brachy.h:54,

from egs_brachy.cpp:52:

pubsub.h:69:32: error: ‘typedef struct std::pair SendMessageA’ redeclared as different kind of symbol

typedef pair SendMessage;

^

In file included from C:/Program Files/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/windows.h:72:0,

from C:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSElibwin6432/egs_config1.h:36,

from C:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEegs++/egs_libconfig.h:54,

from C:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEegs++/egs_advanced_application.h:42,

from egs_brachy.h:54,

from egs_brachy.cpp:52:

C:/Program Files/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/winuser.h:1980:29: note: previous declaration ‘LRESULT SendMessageA(HWND, UINT, WPARAM, LPARAM)’

WINUSERAPI LRESULT WINAPI SendMessageA(HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam);

^~~~~~~~~~~~

egs_brachy.cpp: In member function ‘virtual int EB_Application::ausgab(int)’:

egs_brachy.cpp:1480:17: error: expected ‘;’ before ‘send_messages’

SendMessage send_messages[] = {

^~~~~~~~~~~~~

egs_brachy.cpp:1487:6: warning: statement is a reference, not call, to function ‘SendMessageA’ [-Waddress]

};

^

egs_brachy.cpp:1487:6: warning: statement has no effect [-Wunused-value]

egs_brachy.cpp:1488:24: error: ‘send_messages’ was not declared in this scope

int nmesg = sizeof(send_messages)/sizeof(send_messages[0]);

^~~~~~~~~~~~~

egs_brachy.cpp:1488:24: note: suggested alternative: ‘SendMessageW’

int nmesg = sizeof(send_messages)/sizeof(send_messages[0]);

^~~~~~~~~~~~~

SendMessageW

egs_brachy.cpp:1468:10: warning: unused variable ‘escaping_source’ [-Wunused-variable]

bool escaping_source = leaving_source && !latch_control.hasEscaped(&top_p);

^~~~~~~~~~~~~~~

egs_brachy.cpp:1474:10: warning: unused variable ‘escaping_geom’ [-Wunused-variable]

bool escaping_geom = is_before_transport && irnew < 0;

^~~~~~~~~~~~~

mingw32-make: * [C:EGSnrc-2017EGSnrc_with_egs_brachyHEN_HOUSEmakefilescpp_makefile:78: egs_brachy_win6432.o] Error 1

ExitCode = 2

*********************** finished ***************************

Problem running egs_inprz gui on mac

Problem running egs_inprz gui on mac

I’m trying to install EGSnrc on a macOS 10.13.2 (High Sierra). Basically all is good, including running dosrznrc from the terminal command line.

The problem is, however, that I’m unable to run using the graphical user interface (egs_inprz). The software opens allright and all looks good, but after the compilation of dosrznrc, when I try to run the default template example (from the gui), I get the following message:

EXECUTING : /Users/Claus/EGSnrc/egs_home//bin/osx6/dosrznrc -i dosrznrc_template.egsinp -p /Users/Claus/EGSnrc/HEN_HOUSE/pegs4/data/521icru.pegs4dat

dyld: Library not loaded: ../egs++/dso/osx6/libiaea_phsp.dylib

Referenced from: /Users/Claus/EGSnrc/egs_home//bin/osx6/dosrznrc

Reason: image not found

INTERACTIVE RUN COMPLETED !!!

without any output. I have tried to add:

export DYLD_LIBRARY_PATH=/Users/Claus/EGSnrc/HEN_HOUSE/egs++/dso/osx6

to my .profile, but so far without any success. Any help or hints with this matter will be greatly appreciated.

– Claus

Problem installing EGSnrc RZ user codes on Win 10.

Problem installing EGSnrc RZ user codes on Win 10.

I’m currently (January 3, 2018) unable to install the latest release of EGSnrc on a PC running Windows 10. I’ve made several installations in the past (using earlier versions) and I have tried the new install on two different PC’s – and the two machines gave the same problem. I assume, I’m doing something wrong, but I do not know what it is.

Here is the thing: After an apparently successful installation, I cannot get any of the EGSRZ-user codes to run. I cannot identify anything wrong from the status messages created when running the configuration file for windows.

The trouble is, however, clear when I go to the egs_inprz graphical user interface and compile dosrznrc and then run dosrznrc_template.egsinp because I only get a short echo of the command

——–

EXECUTING : C:EGSnrcEGS_HOME\binwin6432-001dosrznrc.exe -i dosrznrc_template.egsinp -p C:EGSnrcHEN_HOUSEpegs4data521icru.pegs4dat

INTERACTIVE RUN COMPLETED !!!

——–

and no output is created. It is as if dosrzegs is simply not run. If I try to run dosrznrc from a prompt, I get the error message “dosrznrc.exe – Entry point not found”. I get the same message if I navigate to the location of the dosrznrc.exe file. I guess there is some sort of trouble with links to some dll’s.

Two additional observations:

(1) I wonder about the reference to “C:EGSnrcEGS_HOME\bin…” (note the double \) rather than “C:EGSnrcEGS_HOMEbin…”. This looks like a wrong path.

(2) Also, I noted that the configuration modifies my path to include C:EGSnrcHEN_HOUSE\egs++dsowin-static (again note the double \).

The changed paths are as follows:

C:EGSnrcHEN_HOUSEegs++dsowin6432

C:EGSnrcHEN_HOUSE\egs++dsowin-static;

C:EGSnrcHEN_HOUSEpreviewRZ;C:EGSnrcHEN_HOUSEbinwin6432;

C:EGSnrcEGS_HOMEbinwin6432;%USERPROFILE%AppDataLocalMicrosoftWindowsApps;

Any help with this issue will be greatly appreciated.

I installed using the EGSnrc-master.zip.

With best regards

Claus

Claus E. Andersen

Technical University of Denmark

DOSXYZ style simulation with egs chamber?

DOSXYZ style simulation with egs chamber?

I would like to say get the dose at each point in each voxel of a 100x100x100 voxelized image. One way to do this is DOSXYZnrc. I wonder if this is also possible with EGSChamber or some other C++ code. At least there is the EGS_XYZGeometry class for voxelized images. But I don’t know if there is a way to score the dose in each voxel?