question

Danyell avatar image
0 Likes"
Danyell asked Danyell commented

Car simulation

I need to create a model having employees park there cars in employee parking lot and walk into building. How do I begin?

FlexSim 25.0.0
moving carpeople getting out of a vehiclepeople walking and waiting in line
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

I'd use a travel network. The parking spots can then just be network nodes. By adding them to a group, it becomes easy to acquire one of them in a Process Flow and tell the car to travel there.

In the attached model I added the "Van" task executer flow item to the FlowItemBin. The 3d shape is part of the people/HC module. You can check where the shape is stored in the FlexSim installation directory from the FlowItemBin.

The rest is just standard Process Flow activities.

parking-example.fsm


parking-example.fsm (45.0 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Danyell commented

a parking lot can be a storage object like a warehousing floor storage, a queue, visual plane or even the model space. In fact you need coordinates where you put cars.

In attached model it is a queue.You can see thsi, if you move the queue and stored car keeps its location relatively to the queue object. The queue is set to do nothing to stack items.

Next you need to let drive a car into a location. Tasktype travel to location is a possible approach (TASKTYPE_TRAVELTOLOC). Flowitem as car drives through a default taskesequence into a queue object. By source code the car movement is enhanced to travel over some locations to a parking slot. Then the car is moved into the queue and an object location is updated.

Next a driver is created. This object gets a tasksequence to go somewhere in the model. The object can be an operator or a flowitem (see example).

Currently it is a squenced driven structure of code in the on Message trigger of the source.Logic can be inserted in triggers or Process Flow. At some point you need to write at least some source code snippets.

let_travel_car_to_location_in_Queue.fsm


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Danyell avatar image Danyell commented ·

Thanks for your model example and answer. I’m new to FlexSim and do not know how to create source codes. Is there another to create this model.

1 Like 1 ·