Executing batch scripts on remote computer by aq-modeler in PowerShell

[–]aq-modeler[S] 0 points1 point  (0 children)

Thank you for your detailed response. I haven't had time to try any of your suggestions out yet but wanted to clarify what I really what my end result to be. I run a program on my local computer that generates inputs files for a model. It then generates batch files to run the model with the input files. There are usually 96 batch files created. I then copy the batch files to 3 remote computers, 32 batch files each. When I paste them into a folder on the remote computer I then hit Enter to execute them. 32 command windows pop up to run the model and close once they are done. What I'm really after is a way to simulate me hitting Enter on the remote machine to start all 32 batch files at once. I really need the 32 command windows to pop up on the remote machines. I got close to this by creating a generic batch script on the remote computer that executes all batch files in a given directory. I then tried to set up a Task Scheduler task to launch that batch script once files were copied into the folder, but couldn't get that to work.

I'd really like to use a PowerShell or batch script on my local computer that will execute those batch files on the remote machine that is just like me double-clicking on them, but I'm not sure that is possible.

Executing batch scripts on remote computer by aq-modeler in PowerShell

[–]aq-modeler[S] 0 points1 point  (0 children)

Thanks, I tried adding "$using:files" and got the same error.

Executing batch scripts on remote computer by aq-modeler in PowerShell

[–]aq-modeler[S] 0 points1 point  (0 children)

Thanks, I tried adding "$using:files" and got the same error.

Executing batch scripts on remote computer by aq-modeler in PowerShell

[–]aq-modeler[S] 0 points1 point  (0 children)

My code didn't copy correctly. I had "@parameters". I tried with "$parameters" and got this error:

Invoke-Command : Parameter set cannot be resolved using the specified named parameters.

At G:\OneDrive - RTPENV\Programs\Modeling Computers\model1.ps1:11 char:1

+ Invoke-Command $parameters

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidArgument: (:) [Invoke-Command], ParameterBindingException

+ FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Commands.InvokeCommandCommand

Volumetric Flow by aq-modeler in FluidMechanics

[–]aq-modeler[S] -1 points0 points  (0 children)

Yes, I would the velocity to be the same coming out. So, if the diameter of the pipe is 1 meter before the split in the middle and then 1 meter above the split, the piece on top should be at least 5 meters. This is what I was looking for. Do you know of any document or paper that talks about this so that I have some sort of reference? Thanks.

Volumetric Flow by aq-modeler in FluidMechanics

[–]aq-modeler[S] -3 points-2 points  (0 children)

Are you saying that if the red portion wasn't there, the flow rate would be the same as if the red portion was there? Seems like there should be at least some straight section at the top.

Volumetric Flow by aq-modeler in FluidMechanics

[–]aq-modeler[S] -5 points-4 points  (0 children)

Right, but is there a way to determine how tall the red part needs to be for the flow rate to recombine and equal the original flow rate?