@@ -7,9 +7,49 @@ class ApplyInletProcess extends Process {
77 this . addInput ( "model_part" , "string" ) ;
88 this . addOutput ( "Process" , "process_list" ) ;
99
10- this . variable_name = this . addWidget ( "string" , "Variable=" , "VELOCITY" , function ( v ) { } ) ;
11- this . modulus = this . addWidget ( "string" , "f(x,y,z,t)=" , "" , function ( v ) { } ) ;
12- this . direction = this . addWidget ( "string" , "Direction=" , "automatic_inwards_normal" , function ( v ) { } ) ;
10+ this . variable_name = this . addWidget ( "string" , "Variable" , "VELOCITY" , function ( v ) { } ) ;
11+ this . modulus = this . addWidget ( "string" , "Modulus" , "" , function ( v ) { } ) ;
12+ this . direction = this . addWidget ( "string" , "Direction" , "automatic_inwards_normal" , function ( v ) { } ) ;
13+
14+ this . variable_name . tooltip = ( w ) => {
15+ let help_tooltip = {
16+ "title" : `${ w . name } ` ,
17+ "value" : `${ w . value } ` ,
18+ "descp" : [
19+ "Name of the target variable of the process." ,
20+ ] ,
21+ }
22+
23+ return help_tooltip ;
24+ }
25+
26+ this . modulus . tooltip = ( w ) => {
27+ let help_tooltip = {
28+ "title" : `${ w . name } ` ,
29+ "value" : `${ w . value } ` ,
30+ "descp" : [
31+ "Modulus of the value that will be assigned to the targeted variable" ,
32+ "Can be assigned as a number or function of x,y,z and t" ,
33+ ] ,
34+ }
35+
36+ return help_tooltip ;
37+ }
38+
39+ this . direction . tooltip = ( w ) => {
40+ let help_tooltip = {
41+ "title" : `${ w . name } ` ,
42+ "value" : `${ w . value } ` ,
43+ "descp" : [
44+ "Defines the direction of the variable. It can be assigned as" ,
45+ "a vector or using one of the following predefined strings:" ,
46+ "\t - automatic_inwards_normal" ,
47+ "\t - automatic_outwards_normal"
48+ ] ,
49+ }
50+
51+ return help_tooltip ;
52+ }
1353
1454 this . properties = {
1555 "interval" : [ 0 , 1e30 ]
@@ -35,8 +75,11 @@ class ApplyInletProcess extends Process {
3575 } ;
3676}
3777
78+ // Set the node name and the description
3879ApplyInletProcess . title = "Apply inlet process" ;
80+ ApplyInletProcess . doc_ref = "https://kratosmultiphysics.github.io/Kratos/pages/Kratos/Processes/General/AnalysisStage.html"
3981ApplyInletProcess . desc = "Define inlet." ;
82+ ApplyInletProcess . doc = `<span class='glyph-solid'></span> <a href="${ ApplyInletProcess . doc_ref } ">Apply Inlet Process</a>` ;
4083
4184LiteGraph . registerNodeType ( "Processes/Fluid dynamics/ApplyInletProcess" , ApplyInletProcess ) ;
4285
0 commit comments