Add new parameter in the XML file

edited November 2016 in DualSPHysics_v4.0
Hi all,

I have tried to add some new parameter into the Dualsph 4.0.
I added the code in the JSpaceCtes.h and .cpp. When running the model, I added 3 parameters into the *_Def.xml; However, in the *_out/*.xml file, these parameter only appear in casedef-constantsdef but not in execution-constants.

I may missed some other code, could you give me some help on that?

Regards,

Yi

Comments

  • The initial XML is loaded by GenCase and the parameters used in section casedef-constantsdef are computed by GenCase (not by DualSPHysics).

    You can not modify GenCase, only DualSPHysics.

    If you want to add new XML parameters you can only do that in execution-parameters and you have to modify all functions that read those XML tags in DualSPHysics. GenCase only copy paste all exeuction-parameters section to the output XML of GenCase that works as input of DualSPHysics.

    Regards
  • Hi Alex,

    Thank you very much. I'll try to add them in execution-parameters.
Sign In or Register to comment.